Container domain/path (tag gateway)
-
Hello,
We use GTM4WP (latest version) on WordPress + WooCommerce. The GTM container. We also use Cloudflare Google Tag Gateway and Complianz Premium (with Consent Mode v2).Cloudflare’s own automated script injection (“Set up tag”) is off, because Google requires it off when consent mode is used.
I configured GTM4WP → Advanced:
- Container domain name = http://www.superionherbs.de
- Container custom path = ajko/gtm.js
Result (verified in DevTools Network):
- gtm.js now loads first-party from https://www.superionherbs.de/ajko/gtm.js ✅
- BUT the GA4 measurement requests (/g/collect) still go to region1.google-analytics.com, and the Google Ads requests still go to http://www.google.com / ad.doubleclick.net ❌
Questions:
- Is the Container domain name / Container custom path setting (the “same tag gateway” support added in the changelog) only meant to change the gtm.js loader URL, or is it also supposed to route the downstream GA4/Ads measurement requests (/g/collect) through the same first-party path?
- If it only affects the gtm.js loader, is there any GTM4WP setting to also send the measurement requests (collect) first-party through the gateway path?
- Or is routing of collect entirely out of GTM4WP’s scope (i.e. handled only by Cloudflare’s injection / Google tag config)?
I want to confirm whether full first-party measurement is achievable via GTM4WP, or whether GTM4WP only first-parties the script load by design.
Thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.