stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.06k stars 394 forks source link

Tag Manager Firing three times #345

Closed juanse254 closed 5 years ago

juanse254 commented 5 years ago

Tag Manager GTM for react fires three times when used in conjunction with react-snap is there any way to mitigate this?

stereobooster commented 5 years ago

You can use navigator.userAgent == "ReactSnap" to do some checks in the app code while snapping.