Advertiser Integration

Indixital JavaScript SDK  Integration Guide


This quick guide will help you set up the Indixital Universal JavaScript SDK (indtl.js) — a cookieless tracking solution to monitor page views, conversions, and funnel progress across your website. Just follow the steps below to get started!


1. Add the Global Tracking Script (All Pages)

Insert one of the following snippets immediately before the closing </head> tag on every page (landing + conversion pages).

A. Direct embed

<!-- Indixital Global Tracking Script -->
<script src="https://cdn.indixital.com/indtl.js"
        id="10bHQsc3ZbArthgdM"
        data-indixital-adv="adv_id"></script>

B. Google Tag Manager

<script>
  var script = document.createElement('script');
  script.src = 'https://cdn.indixital.com/indtl.js';
  script.id  = '10bHQsc3ZbArthgdM';
  script.setAttribute('data-indixital-adv', 'adv_id');
  document.getElementsByTagName('head')[0].appendChild(script);
</script>.

2. Track Conversions

On the conversion page, keep the global script from Step 1, then add the convert() call after it:

<!-- Indixital Global Tracking Script (from Step 1) -->
<script src="https://cdn.indixital.com/indtl.js" id="10bHQsc3ZbArthgdM" data-indixital-adv="adv_id"></script>

<!-- Fire conversion -->
<script>
  if (window._indtl) {
    window._indtl.convert(<TransactionId_or_LeadId>,<TransactionValue>,<Category>,<Stage>);
  }
</script>

Parameters

Parameter

Type

Required

Description

TransactionId_or_LeadId

string / number

Yes

Unique ID for the order, lead, or sign‑up.

TransactionValue

number

No

Monetary value of the transaction (omit if not applicable → pass 0).

Category

string

No

e.g., "electronics", "subscription". Pass an empty string ("") if not available.

Stage

string

No

Funnel stage name (e.g., "purchased", "qualified").

GTM variant

<script>
  var script = document.createElement('script');
  script.src = 'https://cdn.indixital.com/indtl.js';
  script.id  = '10bHQsc3ZbArthgdM';
  script.setAttribute('data-indixital-adv', 'adv_id');
  document.getElementsByTagName('head')[0].appendChild(script);

  if (window._indtl) {
    window._indtl.convert(<TransactionId_or_LeadId>,<TransactionValue>,<Category>,<Stage>);
  }
</script>

3. Update Funnel Stage

Whenever a transaction moves to a new stage (e.g., shipped → delivered), call updateStage() on that page alongside the global script from Step 1.

<!-- Indixital Global Tracking Script (from Step 1) -->
<script src="https://cdn.indixital.com/indtl.js" id="10bHQsc3ZbArthgdM" data-indixital-adv="adv_id"></script>

<!-- Update stage -->
<script>
  if (window._indtl) {
    window._indtl.updateStage(<TransactionId_or_LeadId>,<Stage>,<StageMetaData>);
  }
</script>

Parameters

Parameter

Type

Required

Description

TransactionId_or_LeadId

string / number

Yes

ID of the transaction you are updating.

Stage

string

Yes

New stage label (e.g., "delivered").

StageMetaData

object / string

No

Extra JSON or string info captured at this stage (e.g., courier, timestamp).

GTM variant

<script>
  var script = document.createElement('script');
  script.src = 'https://cdn.indixital.com/indtl.js';
  script.id  = '10bHQsc3ZbArthgdM';
  script.setAttribute('data-indixital-adv', 'adv_id');
  document.getElementsByTagName('head')[0].appendChild(script);

  if (window._indtl) {
    window._indtl.updateStage(<TransactionId_or_LeadId>,<Stage>,<StageMetaData>);
  }
</script>

4. Testing & Verification

  1. Clear browser cache and load a landing page; verify the network request to cdn.indixital.com/indtl.js returns 200 OK.

  2. Complete a test conversion; in the browser’s Network tab, you should see a call to …/v with your Advertiser ID adv_id.

  3. If you fire updateStage(), confirm …/u requests are sent for every stage change.

  4. Within Indixital reporting, check that the event(s) appear under your campaign.


Implementation Checklist

Make sure the following items are completed before going live:

Need Help?

If you run into issues, reach out to your Indixital solutions engineer or email [email protected].

Last updated