Skip to main content

Custom Session Support

Updated over 3 weeks ago

Note: Adtriba Core is a legacy feature that we continue to support but no longer sell. The latest version of this feature is available as Funnel Measurement.
If you are already using Funnel Measurement, find more information here. To upgrade, contact us.

Extend the Integration Snippet with a Custom Session Identifier

<script type="text/javascript">
(function(){
var id = "adtriba-js";
var init = document.getElementById(id);

if (!init) {
var a = document.createElement("script");
var s = document.getElementsByTagName("script")[0];

a.setAttribute("data-project-tracker-id", "YOUR_PROJECT_TRACKER_ID");

a.type = "text/javascript";
a.async = true;
a.id = id;
a.src = "https://cdn.adtriba.com/v2/adtriba.js";
s.parentNode.insertBefore(a, s);
}

window.adtriba = window.adtriba || [];
window.adtriba.push(["pageview"]);
window.adtriba.push(["session", "CUSTOM_SESSION_ID"]);
})();
</script>
Did this answer your question?