Last active
September 16, 2015 10:03
-
-
Save oguzcanhuner/a19ae691853ae424141f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Begin TVSquared Tracking Code --> | |
<script type="text/javascript"> | |
var _tvq = window._tvq = window._tvq || []; | |
(function () { | |
var session = {'user': '<USERREF>'}; | |
var actionname = '<ACTIONNAME>'; | |
var action = {'rev': '<REVENUE>', 'prod': '<PRODUCT>', 'id': '<ACTIONID>', 'promo': '<PROMOCODE>'}; | |
var u = (("https:" == document.location.protocol) ? "https://collector-588.tvsquared.com/piwik/" : "http://collector-588.tvsquared.com/piwik/"); | |
_tvq.push(['setSiteId', "TV-451818-1"]); | |
_tvq.push(['setTrackerUrl', u + 'piwik.php']); | |
_tvq.push([function() { this.setCustomVariable(5, 'session', JSON2.stringify(session), 'visit')}]); | |
_tvq.push([function() { this.setCustomVariable(5, actionname, JSON2.stringify(action), 'page')}]); | |
_tvq.push(['trackPageView']); | |
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.type = 'text/javascript'; g.defer = true; g.async = true; g.src = u + 'tv2track.js'; | |
s.parentNode.insertBefore(g, s); | |
})(); | |
</script> | |
<!-- End TVSquared Tracking Code --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment