Installing via JavaScript (HTML)

Last updated About 1 month ago

What is the Tinct snippet?

The Tinct tracking snippet is a small piece of JavaScript code that enables personalization on your website. It's unique to your workspace.

You’ll find it in your workspace’s setting page and you only need to install it once.
It works across all your campaigns and landing pages on the same domain.

How to install

  1. In Tinct, go to Workspace → Settings → Snippet

    or access it during your first campaign setup.

  2. Click Copy code to copy your unique snippet.

  3. Open your website's source code and locate your main layout or template file — the one that applies to all pages (or your CMS's global header template).

  4. Paste the snippet just before the closing </head> tag in that file. By placing it in your global layout, the snippet will automatically load on every page of your site — including any future landing pages you use in new campaigns.

  5. Save your changes and deploy to production.

  6. Back in Tinct, enter your website URL and click Verify Installation.

Verification

Once verified, your snippet status will show as Active with the date of last verification and the domain it's running on.

⚠️ Important: The snippet must be present on every page where you want personalization to work. Don't paste it into a single page's HTML — always use your site-wide layout or header template so all current and future campaign pages are covered.