#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.

  1. Navigate to “Add a new tag” in your Google Tag Manager account
  2. Select “Choose a tag type to begin setup”
  3. Select “Custom HTML” as the tag type
  4. 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>