Tracking users via Hull.js on your website is fairly easy since all you have to do is to install the hull.js snippet in your website. If you have decided to use Google Tag Manager (GTM) for this task, here are the steps.
Navigate to your Workspace in Google Tag Manager, select tags and add a new Custom HTML Tag. Now get the snippet from your Platform in the Hull Dashboard and paste it into the HTML field in GTM:
The code snippet of the platform looks like the following:
<script id='hull-js-sdk' platform-id='123456a7b89012c3456789d0' org-url='https://demo.hullapp.io' src='https://js.hull.io/0.10.0/hull.js.gz' ></script>
In order to make it work in GTM, we have to adhere to strict HTML standard, so we have to prefix platform-id and org-url with data-:
<script id='hull-js-sdk' data-platform-id='123456a7b89012c3456789d0' data-org-url='https://demo.hullapp.io' src='https://js.hull.io/0.10.0/hull.js.gz' ></script>
That's all for the snippet.
Make sure to check Support document.write before you move on to configure the Triggers.
The answer to what trigger really depends what you have configured in your GTM workspace. For starters you can stick to All Pages:
That's it, preview your page and check in your Hull organization that page views are captured appropriately.