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)
Note: Your unique Advertiser ID (adv="adv_id" in the examples) will be provided by the Indixital team.
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>.The global script must be present on every page, including conversion and stage‑update pages.
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").
Transaction ID is mandatory. For the other parameters (Transaction Value, Category, Stage), either remove them or pass an empty string ("") if not available.
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>Call updateStage() Each time a transaction progresses to a new stage in your funnel.
4. Testing & Verification
Clear browser cache and load a landing page; verify the network request to
cdn.indixital.com/indtl.jsreturns 200 OK.Complete a test conversion; in the browser’s Network tab, you should see a call to
…/vwith your Advertiser IDadv_id.If you fire
updateStage(), confirm…/urequests are sent for every stage change.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