Who Me Too'd this topic

Who Me Too'd this topic

Gold Contributor
Gold Contributor

If I were to use the jQuery onHandler (1.7 and above) extension to add the following line of code to get the percent page scrolled and pass it to a variable in the data layer:

 

100 * $(window).scrollTop() / ($(document).height() - $(window).height());

 

what do I set the jQuery Selector to? We set it as window but that does not seem to work.

 

 

Who Me Too'd this topic
Public