Get started

Installation guides

Google Tag Manager

Load Calmstats from a Custom HTML tag in Google Tag Manager.

  1. In Google Tag Manager, create a new tag of type Custom HTML.
  2. 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>
  1. Set the trigger to Initialization - All Pages (or All Pages).
  2. 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.