Skip to content

Commit 438b34a

Browse files
Adding FAQs and corrected numbers on the "configure" list
Users constantly asks what the "set up tag" button does. When they disabled it on the dashboard a code is still being injected on their zone.
1 parent d4eb1a2 commit 438b34a

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/content/docs/google-tag-gateway/index.mdx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,34 @@ Your Cloudflare dashboard user must have one of the following [Account Roles](/f
2929
<DashButton url="/?to=/:account/tag-management/google-tag-gateway" />
3030

3131
2. Select your domain.
32-
4. Enable the toggle for **Turn on and configure Google tag gateway**.
32+
3. Enable the toggle for **Turn on and configure Google tag gateway**.
3333

3434
![Google tag gateway for advertisers configuration](~/assets/images/google-tag-gateway/google-tag-configuration.png)
3535

36-
5. Add your Google tag ID and the path on your website reserved for the Google tag.
36+
4. Add your Google tag ID and the path on your website reserved for the Google tag.
3737
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.
3838

3939
![Add to ID and path](~/assets/images/google-tag-gateway/google-tag-id-path.png)
4040

41-
6. Once you click **Save**, Google tag gateway for advertisers 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.
41+
5. Once you click **Save**, Google tag gateway for advertisers 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.
4242

4343
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.
4444

4545
## Related resources
4646
- [Google Developer Docs: Set up Google tag gateway for advertisers](https://developers.google.com/tag-platform/tag-manager/gateway/setup-guide?setup=auto)
4747
- [Google Help Center: Set up Google tag gateway for advertisers in the Google tag with Cloudflare](https://support.google.com/tagmanager/answer/16061406)
4848
- [Google Help Center: Set up Google tag gateway for advertisers in Google Tag Manager with Cloudflare](https://support.google.com/analytics/answer/16061641)
49+
50+
## FAQs
51+
52+
### I disabled the "Set up tag" on the dashboard, but the code is still being injected on my domain and subdomains. Is this an expected behavior?
53+
54+
Yes, this is an expected behavior, the "Set up tag" button does not control if the script is injected, it controls the content of the injected script.
55+
56+
1. When "Set up tag" is **disabled**, a base initialization script is still injected. This allows you to implement your own customized Google Tag Manager (GTM) logic. This is useful for selectively applying GTM to specific parts of your website.
57+
2. When "Set up tag" is **enabled**, injects the standard Google Tag Manager script which includes the line
58+
```js showLineNumbers
59+
w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});
60+
```
61+
62+

0 commit comments

Comments
 (0)