diff --git a/public/robots.txt b/public/robots.txt index c3da9874d4dad3..2614eb35265613 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -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 diff --git a/src/assets/images/google-tag-first-party-mode/google-tag-configuration.png b/src/assets/images/google-tag-first-party-mode/google-tag-configuration.png new file mode 100644 index 00000000000000..f706f66aa836ce Binary files /dev/null and b/src/assets/images/google-tag-first-party-mode/google-tag-configuration.png differ diff --git a/src/assets/images/google-tag-first-party-mode/google-tag-id-path.png b/src/assets/images/google-tag-first-party-mode/google-tag-id-path.png new file mode 100644 index 00000000000000..94f3697a4eb4df Binary files /dev/null and b/src/assets/images/google-tag-first-party-mode/google-tag-id-path.png differ diff --git a/src/content/docs/google-tag-first-party-mode/index.mdx b/src/content/docs/google-tag-first-party-mode/index.mdx new file mode 100644 index 00000000000000..dc4e73e7cd18ae --- /dev/null +++ b/src/content/docs/google-tag-first-party-mode/index.mdx @@ -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 Cloudflare as a CDN to get the most out of ad measurement tools with just a few clicks. + +At the moment, Google tag in first-party mode is in closed beta. You can [sign up](https://docs.google.com/forms/d/e/1FAIpQLSdOx5gL9HhSKH2eJ_LpaiCMAMnV6zPUy4-BrkA6ndc3AUNuCQ/viewform) to participate in the closed beta through [Google Ads](http://ads.google.com), [Google Analytics](http://analytics.google.com) or [Google Marketing Platform](https://marketingplatform.google.com/). + +### 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](https://support.google.com/analytics/answer/9539598?hl=en) 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 served by Cloudflare. + diff --git a/src/content/products/google-tag-first-party-mode.yaml b/src/content/products/google-tag-first-party-mode.yaml new file mode 100644 index 00000000000000..1f1dc91181af11 --- /dev/null +++ b/src/content/products/google-tag-first-party-mode.yaml @@ -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 \ No newline at end of file diff --git a/src/icons/google-tag-first-party-mode.svg b/src/icons/google-tag-first-party-mode.svg new file mode 100644 index 00000000000000..68ededda6f648e --- /dev/null +++ b/src/icons/google-tag-first-party-mode.svg @@ -0,0 +1 @@ + \ No newline at end of file