Skip to content

Commit

Permalink
Add Google tag first party mode
Browse files Browse the repository at this point in the history
  • Loading branch information
angelampcosta committed Sep 18, 2024
1 parent 5299f3b commit f667b9a
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ Disallow: /client-ip-geolocation
Disallow: /plans/
Disallow: /constellation
Disallow: /cdn-cgi/
Disallow: /google-tag-first-party-mode/

Sitemap: https://developers.cloudflare.com/sitemap-index.xml
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions src/content/docs/google-tag-first-party-mode/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: Google tag in first-party mode
pcx_content_type: reference
sidebar:
order: 1

---

## Get started

Google tag in first-party mode allows website owners using Google Tag Manager and Cloudflare as a CDN to add a layer of data security and enables additional data privacy controls — such as full IP obfuscation — without compromising your measurement.

At the moment, Google tag in first-party mode is in closed beta. You can sign up to participate in the closed beta through the Tag Manager module of Google Marketing Platform [link].

### Configure Google tag in first-party mode in the dashboard

1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select your account.
2. Go to Google tag in first-party mode > Configuration.
3. Enable the toggle for Turn on and configure Google tag.

![Google tag in first-party mode configuration](~/assets/images/google-tag-first-party-mode/google-tag-configuration.png)

4. Add your Google tag ID and the path on your website reserved for the Google tag.
The Google tag ID can be found in the Google Tag Experience dashboard. The measurement path is an unused path on your site that will load Google Tag Manager and all subsequent measurement requests.

![Add to ID and path](~/assets/images/google-tag-first-party-mode/google-tag-id-path.png)

5. Once you click Save, Google Tag in First Party Mode will be enabled on your zone. If you already have a GTM script on your website, this First Party Tag will override the existing script.

Now that you have authenticated into your Cloudflare account and configured GTM in first-party mode, your Google Tags will be loaded using `https://your-domain/measurement-path/...`and subsequent measurement requests will be proxied by Cloudflare.

22 changes: 22 additions & 0 deletions src/content/products/google-tag-first-party-mode.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Google tag in first-party mode

product:
title: Google tag in first-party mode
url: /google-tag-first-party-mode/
group: Performance
show: false

meta:
title: Google tag in first-party mode docs
description:
Google tag in first-party mode allows website owners using Google Tag Manager and Cloudflare as a CDN to add a layer of data security and enables additional data privacy controls.
author: "@cloudflare"

externals:
- title: Cloudflare home
url: https://www.cloudflare.com/

algolia:
index: TEST - Re-dev docs
apikey: 4edb0a6cef3338ff4bcfbc6b3d2db56b
product: google-tag-first-party-mode
1 change: 1 addition & 0 deletions src/icons/google-tag-first-party-mode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f667b9a

Please sign in to comment.