All install guides

Install on Drupal

Add a few lines with the Asset Injector module. The script is about 6 KB gzipped and loads asynchronously, so it won't hold up your pages.

1. Get your tracking ID

Create a free account, then add your site in the dashboard. It shows the snippet below with your own tracking ID filled in; the ID here is only an example.

2. The snippet

window.__TF_ID__ = 'TF-1A2B3C4D';
(function (d) {
    var s = d.createElement('script');
    s.async = true;
    s.src = 'https://api.thravic.com/tf.js';
    s.setAttribute('data-tracking-id', 'TF-1A2B3C4D');
    d.head.appendChild(s);
})(document);

3. Add it

Before you start: Drupal has no box for header code, so this uses the free Asset Injector module. The code above is the same tag written as JavaScript.

  1. Install the Asset Injector module (drupal.org/project/asset_injector) and turn it on under Extend.
  2. Go to Configuration → Development → Asset Injector → JS Injector and click Add JS Injector.
  3. Name it "Thravic", paste the code above into the code box and click Save.
  4. In your Thravic dashboard, open the site and click Verify Installation.

Data appears within a few minutes of your first visitor. Form inputs are masked in the browser before anything is sent.

Other platforms

WordPress · Shopify · Wix · Squarespace · Webflow · Framer · Ghost · Carrd · Bubble · Blogger · Joomla · Tag Manager · Next.js · AI agent · Other / HTML · React Native and Expo