Issue
I want to install Sentry as a tag through Google Tag Manager (GTM).
Applies To
All SaaS Customers
SDK setup
Resolution
Install Sentry with the Loader Script, which Sentry hosts on its CDN and ties to your project's DSN.
To install it through Google Tag Manager:
In Sentry, go to Project Settings > Client Keys (DSN) and copy your Loader Script.
In Google Tag Manager, create a new Custom HTML tag and paste the Loader Script.
Set the tag to fire as early as possible, for example on the Initialization or All Pages trigger, so Sentry loads before your other scripts.
See the Loader Script documentation.
