Surendra Sharma

Surendra Sharma

Search This Blog

Tuesday, February 3, 2015

Script for LuckyOrange tracking code

Like Google Analytic, there are other analytic support available on web. One of them is #LuckyOrange

To work with this you need Site ID. I represented it in sample code as “NNNNN”. Below is script that you need to place it between <head> </head> section of webpage. The code is asynchronous and will not block your page from loading.

<script type='text/javascript'>
    window.__wtw_lucky_site_id = 'NNNNN';

    (function () {
        var wa = document.createElement('script'); wa.type = 'text/javascript'; wa.async = true;
        wa.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://cdn') + '';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wa, s);


Please leave your comments or share this code if it’s useful for you.

No comments:

Post a Comment