threshold-network / token-dashboard

22 stars 23 forks source link

Implement Google Tag Manager 🏷️ #733

Closed michalsmiarowski closed 6 months ago

michalsmiarowski commented 6 months ago

Ref: #730

Implements Google Tag Manager into the Threshold Dashboard.

For this, I've created a separate useGoogleTagManager hook that appends the code snippets from GTA into the DOM. For this to work properly we have to provide GOOGLE_TAG_MANAGER_ID as secret through .env file. I've also created a feature flag for it so that we know for sure it is fired only on production.

github-actions[bot] commented 6 months ago

Preview uploaded to https://preview.dashboard.test.threshold.network/implement-google-tag-manager/index.html.

github-actions[bot] commented 6 months ago

Preview uploaded to https://preview.dashboard.test.threshold.network/implement-google-tag-manager/index.html.