Skip to main content
Cross Device Support
János Moldvay avatar
Written by János Moldvay
Updated over 3 years ago

Extend the Integration Snippet with the Project Sync Option

<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.setAttribute("data-project-sync", "true");
     
        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"]);
})();
</script>
Did this answer your question?