Adding Seline to your Google Tag Manager

You can easily add Seline to your GTM project by following the steps below.

<script>
var script = document.createElement('script');
script.src = "https://cdn.seline.so/seline.js";
script.async = true;
script.id = 'seline';
script.dataset.token = 'PROJECT-TOKEN';
document.getElementsByTagName('head')[0].appendChild(script);
</script>
Click anywhere to copy
  1. Copy the code snippet provided above.
  2. At GTM side, create a new tag and select Custom HTML tag type.
Creating new Tag at GTM
Creating new Tag at GTM.
  1. Paste the code snippet into the HTML field.
  2. Update the PROJECT-TOKEN with your actual project token, which you can find in the general settings at Seline.
Pasting Seline's script into Custom HTML field.
Pasting Seline's script into Custom HTML field.
  1. Set Triggering to All pages.
  2. Save your changes and publish your container.

That's it! Now visit your website, click around a bit, and you should see the events appearing at your Seline dashboard.

To learn how to track custom events, see the custom events documentation.