Advanced Features

AT supports advanced features such as bot filtering, back button offers, exit message, vibration, lander click events tracking and different types of CTR.

Steps to realize these advanced features:

Step 1: Introduce afilter.js file to your lander.

Copy and paste the following code to your lander’s <head> tag. Remember to remove the code comment when putting the lander to use.

<script type="text/javascript">
p=function (name){return decodeURI((RegExp(name + '=' + '(.+?)(&|$)').exec(location.search) || [, null])[1] || '');};
window.atOptions = {
'domain' : p('d'), //
'protocol' : p('p'), //
'maxError' : 2,
'maxLinks' : 50,
'dead' : 'https://google.com', //Dead link for bot traffic
'back' : 'http:// google.com ', //Back button offer URL
'backMessage' : 'Love dating? I love it too!', //Exit message
'vibrate' : null, //Vibration, set as true to allow vibration
}
</script>
<script src="https://yourtrackingdomain.com/afilter.js"></script>

Step 2: Insert the following code into the lander’s <body> tag.

<input type="hidden" id="afilter" value="afilter">
<div class="div">
<script id="dead_1">
var dead = document.getElementById('dead_1').parentElement;
var deadWrapper = document.createElement('div');
deadWrapper.style = 'position: relative';
for(var i = 0; i < 10; i++) {var link = deadLink.cloneNode();
link.onclick = deadUrlCheck;link.innerHTML = 'deadLink';
link.style.top = Math.pow(-1, direction) * i * deadLinkHeight + 'px';
deadWrapper.appendChild(link);};dead.appendChild(deadWrapper)
</script>
</div>

Step 3: Add events.

We want to pay close attention to the interaction that our visitors have with our landers. Event tracking is for noting down the clicks that the visitors took before they click through or close the lander.

For HTML code: Add onclick=”afilter(1);” to the click that you want to track. Number in the bracket is the event number in AT’s report. For example. afilter(1); corresponds to E1 in the report.

For JavaScript code: Add afilter(1); at the click that you want to track. Number in the bracket is the event number in AT’s report. For example. afilter(1); corresponds to E1 in the report.

Step 4: Add a CTR method.

  1. atgo method.

This is the most basic and simplest method. It opens the offer page in the current browser tab.

Add href="javascript:void(0);" onclick="atgo('click');" to the click-through tag as shown in the below picture.

  1. atOpen method.

This method loads the offer page in the current tab and opens a new tab at the same time. It can be used together with atCTA and atBACK. Add onclick="atOpen(atBACK(),atCTA());" to the click-through tag to load your offer page in the current tab and open the back button offer in the new tab.

  1. atPopup method. This method loads your offer page in a new tab. Add href="javascript:void(0);" onclick="atPopup('click');" to the click-through tag as shown in the picture below.

Step 5: Add a new lander with Domain and Protocol.

Save the new lander.