Google Tag Manager
Install Trakily through Google Tag Manager with a Custom HTML tag.
The examples use placeholders. In the app, Settings → Tracking shows the same snippet with your website id (it starts with pls_) and domain already filled in, so copy it from there.
Install
- 1
In Google Tag Manager, create a new tag of type Custom HTML and paste the script.
- 2
Set the trigger to All Pages and save.
- 3
Click Submit and publish the container.
<script defer data-website-id="pls_…" data-domain="example.com" src="https://trakily.com/js/script.js" ></script>
Ad blockers often block Google Tag Manager itself, so visitors who block GTM never load the Trakily script either. Install the script directly in your site's <head> when you can.
Check the install
Open your live site in a normal browser window, then go to Settings → Tracking in Trakily. The status line switches from Waiting for the first event… to Receiving events within a few seconds of your visit.
Still waiting? Add data-debug="true" to the script tag and open the browser console: every event is logged with a [trakily] prefix, and if tracking is disabled the log says why (missing attributes, localhost, iframe, bot or trakily_ignore). The Quickstart lists the common causes.