Cover self-hosted Google Tag Manager entries: "https://gtm.<domain>/gtm.js?id=GTM-..."#1069
Conversation
Matches entries like: https://gtm.idealo.de/gtm.js?id=GTM-WVMX98J
|
I would be tempted to classify this separately as "server-side GTM" or similar wording. Its a growing enterprise configuration to avoid 3P script blocking by Safari et al. Subdomains can literally be anything (e.g. my preferred choice is sgtm). Therefore my suggestion is to keep it simple and filter only on: /gtm.js We have used this filter within our own app for approx 1 year and I have not found any issues. |
Removing the domain check makes sense to me. Do you know if it general enough to keep the prefix check ( We could split the entries to distinguish between the traditional and the server-side setup. I think, we could express it to match on any domain except for |
Within our app we did not include any query parameters in the filter. I have not seen an id parameter with another prefix, but it is possible. For example, these types of client side requests are common: https://www.googletagmanager.com/gtag/js?id=AW- |
Thanks for the information. I think, we can start with including the "id=" matching for the start to avoid false-positives. And then either extend it to more prefixes or even drop it. Changing it to a draft now. Will later try out if the pattern can be split into the server-side version. |
Commonly used for server-side tagging.
|
Split it into a separate pattern now: "Server-side Google Tag Manager", which matches only first-party requests. |
Matches entries like:
Not sure how common the setup is; but if a domain has a subdomain
gtmand serves from there/gtm.js?id=GTM-..., false-positives should be fairly unlikely.