Installation guides
Google Tag Manager
Load Calmstats from a Custom HTML tag in Google Tag Manager.
- In Google Tag Manager, create a new tag of type Custom HTML.
- Paste the script. In Tag Manager, put the website ID in the script URL, which works where attributes may be dropped:
HTML<script defer src="https://calmstats.com/script.js?website_id=YOUR-SITE-ID"></script>
- Set the trigger to Initialization - All Pages (or All Pages).
- Save and Submit to publish the container.
Loading the script directly in your site's <head> is faster and isn't blocked when a visitor's browser blocks Tag Manager. Use Tag Manager only when you can't edit your site's code.