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
//Use as a variable in the "Non-interaction Hit" field of the Event Tag | |
function(){ | |
nonInteraction = 'Not Set' | |
//the height of the browser window's viewport | |
//https://developer.mozilla.org/en-US/docs/Web/API/Window/innerHeight | |
windowHeight = window.innerHeight | |
//the height of the document object. In most cases, this is equal to the <body> element of the document |
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
function() { | |
try { | |
// Option1 or Option2 | |
cd = 'undefined' | |
if({{customVarOption1orOption2}} == 1){ | |
cd = '-'; //option1 | |
} | |
else if({{customVarOption1orOption2}} == 2){ | |
cd = '-'; // option2 | |
} |
NewerOlder