inurl targeting using synchronous JavaScript tags

When it comes to using JavaScript tags in Google Chrome, you may run into inurl: keyword targeting issues due to the latest Chrome Update.

Fortunately, there is a way to manually pass in the referrer (the URL the page is running on) into your AdButler JavaScript Zone Tags to resolve this recent change.

Note: This only applies to users using standard JavaScript zone tags. We automatically apply this functionality to our Asynchrous JavaScript tags by default.

Step 1:

Copy the following line of code:

 var _absrc = absrc.split("type=js"); absrc = _absrc[0] + 'type=js;referrer=' + encodeURIComponent(document.location.href) + _absrc[1];

Step 2:

Insert the line you've copied, just above the line starting with document.write

Your tag should look like this:

<script type="text/javascript">
var rnd = window.rnd || Math.floor(Math.random()*10e6);
var pid######= window.pid###### || rnd;
var plc######= window.plc###### || 0;
var abkw = window.abkw || '';
var absrc = 'https://servedbyadbutler.com/adserve/;ID=######;size=0x0;setID=######;type=js;sw='+screen.width+';sh='+screen.height+';spr='+window.devicePixelRatio+';kw='+abkw+';pid='+pid######+';place='+(plc#######++)+';rnd='+rnd+';click=CLICK_MACRO_PLACEHOLDER';
var _absrc = absrc.split("type=js"); absrc = _absrc[0] + 'type=js;referrer=' + encodeURIComponent(document.location.href) + _absrc[1];
document.write('<scr'+'ipt src="'+absrc+'" type="text/javascript"></scr'+'ipt>');
</script>

This will allow you to successfully use inurl: target using our standard synchronous JavaScript tags.

If you're experiencing problems, please feel free to reach out to our support team via an in-app support ticket, or click here to email our support team.


Can't find what you're looking for?

Send us an email

hello@adbutler.com

Visit the blog

For more ad serving tips, industry news and AdButler insights.