Custom Session Support
János Moldvay avatar
Written by János Moldvay
Updated over a week ago

Extend the Integration Snippet with a Custom Session Identifier

<script type="text/javascript">
    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; = id;
        a.src = "";
        s.parentNode.insertBefore(a, s);

    window.adtriba = window.adtriba || [];
    window.adtriba.push(["session", "CUSTOM_SESSION_ID"]);
Did this answer your question?