Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging server-side GTM requests with dataSlayer #135

Open
rickdronkers opened this issue May 12, 2021 · 3 comments
Open

Debugging server-side GTM requests with dataSlayer #135

rickdronkers opened this issue May 12, 2021 · 3 comments
Assignees

Comments

@rickdronkers
Copy link

It is now possible to fire GTM and GA from your own domain using Server-Side GTM. So for instance, on my website (https://datatovalue.nl) both gtm.js and analytics.js are loaded from https://gtm.datatovalue.nl

In this setup (which will become the new default for most companies) dataSlayer can't recognize GTM and GA anymore.

Would be great if you can specify your own tracking domain to fix this.

@sean-adams sean-adams self-assigned this Jun 8, 2021
@hooannaeis
Copy link

Hey @sean-adams ,

I suggest using the following as the regex to recognize if a specific requests is a Google Analyitcs hit or not:

\/collect\/?(?:.*[&#?]tid=|$)/

@pschneider87
Copy link

I would also give a +1 on this feature request, since sGTM Implementations are getting more and more common

@T-D-Miller
Copy link

I'd +1 one that for as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants