adopted-ember-addons / ember-metrics

Send data to multiple analytics integrations without re-implementing new API
MIT License
367 stars 160 forks source link

Google Tag Manager Crossorigin #512

Closed jalandis closed 7 months ago

jalandis commented 2 years ago

I am seeing a lot of mysterious errors reported in our rollbar logs, (unknown) script error. Troublesome and I am not sure the real culprit as CORS hides all details. Cant replicate outside production but I am guessing google tag manager included through ember-metrics is the source.

I would like to request an option to enable crossorigin="anonymous on the injected script. This will hopefully give me more information to go on.

https://docs.rollbar.com/docs/unknown-script-error

If this is something you would like, I can create a PR but may need assistance testing.