Java Script Pixel Integration

In case we would like to integrate using java script pixel (On a Thank You page for example): 

1. Click on your user setting menu, choose an “Event”, and then click on “Get Pixel” for the requested event. 

* Note that events are global, meaning you can use the same Pixel for a few campaigns/destination. For example, different app developers’ campaigns may use the same “CPI” Pixel to track an app installation and opening.





2. You'll be prompt with 3 generated pixels. Make sure to copy the Script Pixel

3. Implement the pixel on your page.
 * We warmly recommend to have your tech team involved to make sure you're placing the pixel on the right part of the page. 


Using Custom Domains for Secure Tracking

If you have setup a custom sub domain for your Image or Java Script pixel to track with, you will have to add the following script right after your Image or Java Script pixel-

<script>
  function b(a) { var l; a || (a = window.location.href); l = "tid".replace(/[\[\]]/g, "\\$&"); return (a = (new RegExp("[?&]" + l + "(=([^&#]*)|&|#|$)")).exec(a)) ? a[2] ? decodeURIComponent(a[2].replace(/\+/g, " ")) : "" : null }if ("https:" === location.protocol) {var c = b(); if (!c) { var d; a: { for (var e = document.cookie.split(";"), f = 0; f < e.length; f++) { for (var g = e[f]; " " == g.charAt(0) ;) g = g.substring(1); if (0 == g.indexOf("CRID=")) { d = g.substring(5, g.length); break a } } d = "" } if (!d) { var h = b(document.referrer); if (!h && window.location != window.parent.location) var k = b(window.parent.location) } } if (c || d || h || k) {var m = document.getElementsByClassName("focuus"); if (0 < m.length) for (var n = 0; n < m.length; n++) {var p = m[n].src, q = "?"; -1 != p.indexOf("?") && (q = "&"); m[n].src =p + q + "tid=" + (c || d || h || k)}}};
</script>  


This is because the DNS for your custom domain is only setup to use unsecure HTTP servers. Each time a domain is secure, an SSL certificate is required to authenticate that the server is secure. Since by default FOCUUS does not have an SSL certificate setup for your custom domain, we revert back to the default tracking domain.
  


* Cookie Lifespan - FOCUUS cookie duration is 60 days.  

Feedback and Knowledge Base