Skip to content

Commit 693c09f

Browse files
angelampcostamaheshwarip
authored andcommitted
Adds google tag (#17361)
* Add Google tag first party mode * Changes after review. * Substitutes images.
1 parent ed78664 commit 693c09f

File tree

6 files changed

+55
-0
lines changed

6 files changed

+55
-0
lines changed

public/robots.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ Disallow: /client-ip-geolocation
44
Disallow: /plans/
55
Disallow: /constellation
66
Disallow: /cdn-cgi/
7+
Disallow: /google-tag-first-party-mode/
78

89
Sitemap: https://developers.cloudflare.com/sitemap-index.xml
233 KB
Loading
178 KB
Loading
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Google tag in first-party mode
3+
pcx_content_type: reference
4+
sidebar:
5+
order: 1
6+
7+
---
8+
9+
## Get started
10+
11+
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.
12+
13+
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/).
14+
15+
### Configure Google tag in first-party mode in the dashboard
16+
17+
1. Log in to the [Cloudflare dashboard](https://dash.cloudflare.com/login) and select your account.
18+
2. Go to **Google tag in first-party mode** > **Configuration**.
19+
3. Enable the toggle for **Turn on and configure Google tag**.
20+
21+
![Google tag in first-party mode configuration](~/assets/images/google-tag-first-party-mode/google-tag-configuration.png)
22+
23+
4. Add your Google tag ID and the path on your website reserved for the Google tag.
24+
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.
25+
26+
![Add to ID and path](~/assets/images/google-tag-first-party-mode/google-tag-id-path.png)
27+
28+
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.
29+
30+
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.
31+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Google tag in first-party mode
2+
3+
product:
4+
title: Google tag in first-party mode
5+
url: /google-tag-first-party-mode/
6+
group: Performance
7+
show: false
8+
9+
meta:
10+
title: Google tag in first-party mode docs
11+
description:
12+
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.
13+
author: "@cloudflare"
14+
15+
externals:
16+
- title: Cloudflare home
17+
url: https://www.cloudflare.com/
18+
19+
algolia:
20+
index: TEST - Re-dev docs
21+
apikey: 4edb0a6cef3338ff4bcfbc6b3d2db56b
22+
product: google-tag-first-party-mode
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)