#docs #integrations #JavaScript #Websites #Google Tag Manager
Using Google Tag Manager to include TelemetryDeck in your website
You can use Google Tag Manager to include the TelemetryDeck Analytics tracking code in your website.
- Navigate to “Add a new tag” in your Google Tag Manager account
- Select “Choose a tag type to begin setup”
- Select “Custom HTML” as the tag type
- Paste the following code snippet into the HTML field, replacing
<YOUR APP ID>
with your actual App ID:
<script>
var script = document.createElement('script');
script.defer = true;
script.dataset.appId = "YOUR_APP_ID";
script.src = "https://cdn.telemetrydeck.com/websdk/telemetrydeck.min.js";
document.getElementsByTagName('head')[0].appendChild(script);
</script>