sean-adams / dataslayer

A Chrome extension to enhance tag management and analytics debugging.
MIT License
73 stars 18 forks source link

Debugging server-side GTM requests with dataSlayer #135

Open rickdronkers opened 3 years ago

rickdronkers commented 3 years ago

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.

hooannaeis commented 2 years ago

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 commented 2 years ago

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

T-D-Miller commented 5 months ago

I'd +1 one that for as well.