duderuud
Well-known member
Hey guys,
I want to find out how many of our users use adblockers. Pagefair should do that trick.
For Tradefair to work you have to add some code to all pages, something like this:
Where can I add that code?
I want to find out how many of our users use adblockers. Pagefair should do that trick.
For Tradefair to work you have to add some code to all pages, something like this:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script type="text/javascript">
(function() {
function async_load(script_url){
var protocol = ('https:' == document.location.protocol ? 'https://' : 'http://');
var s = document.createElement('script'); s.src = protocol + script_url;
var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
}
bm_website_code = 'xxxxxxxxxxxx';
jQuery(document).ready(function(){async_load('asset.pagefair.com/measure.min.js')});
jQuery(document).ready(function(){async_load('asset.pagefair.net/ads.min.js')});
})();
</script>
Where can I add that code?