Skip to content

Commit

Permalink
Adds google tag (#17361)
Browse files Browse the repository at this point in the history
* Add Google tag first party mode

* Changes after review.

* Substitutes images.
  • Loading branch information
angelampcosta authored Oct 7, 2024
1 parent 7e17442 commit dced53d
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 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.

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 dced53d

Please sign in to comment.