Additionally, I want to quickly touch base about landing page scripts. There are a few scripts you can use on your landing pages to help you increase your CTR, conversion rate, or even monetization by adding a few lines of code.
For a script to work, you need to insert it in the body of your landing page code or sometimes in the button or call to action.
While you need to test every script separately and see if it works for your landing page, here are a few ones that you can use that are very common for pop and push notification traffic. There are more scripts and you can do a lot of stuff if you know code or use your tracker’s tutorials though:
This scripts shows a timer in minutes to add scarcity:
<script> var timeoutHandle; function countdown(minutes) { var seconds = 60; var mins = minutes function tick() { var counter = document.getElementById("timer"); var current_minutes = mins-1 seconds--; counter.innerHTML = current_minutes.toString() + ":" + (seconds < 10 ? "0" : "") + String(seconds); if( seconds > 0 ) { timeoutHandle=setTimeout(tick, 1000); } else { if(mins > 1){ setTimeout(function () { countdown(mins - 1); }, 1000); } if(counter.innerHTML === '0:00'){ counter.innerHTML = t; counter.classList.remove("b"); } } } tick(); } countdown(1); </script>
With this script, you can display any parameters from your tracker such as Operating system, device, browser, city, country, etc. in your landing page. If you’re not using Voluum the code might be a bit different:
<html> <head> <script> function getURLParameter(name) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split("="); if (pair[0] === name) { return decodeURI(pair[1]); } } return ""; } </script> </head> <body> Hello <script>document.write(getURLParameter('m1'))</script> user, you just won! </body> </html>
This script shows a message to the user asking to confirm if they want to leave the page when they close the tab/window. It could increase your retention rate. The custom “TEXT” can be modified to show something about your offer in some browsers:
<script> var PreventExitPop = true; function ExitPop() { if (PreventExitPop != false) { return "TEXT"; } } window.onbeforeunload = ExitPop; </script>
This script modifies the browser’s history and adds your URL in there. If the user wants to go back, he goes to your offer or another landing page instead. It doesn’t work on all browsers anymore but it can add a decent percentage of extra clicks and conversions to your offer, especially with pop and redirect traffic, or Android users due to the way their system works.
<script> ! function() { var t; try { const URL = window.location.href.split(/[#]/)[0]; for (t = 0; 10 > t; ++t) history.pushState({}, "", URL + '#') onpopstate = function(event) { event.state && location.replace('https://yourclickurl'); } } catch (o) { console.log(o); } }(); </script>
This script redirects the user to another URL (offer URL, for example) after any amount of seconds you set in the code. It works for simple landing pages where the user doesn’t need to read much, but keep in mind it will drastically increase your CTR and more clicks to your offer don’t necessarily mean more conversions.
<script> var count = 10; var counter = setInterval(timer, 1000); function timer() { count = count - 1; if (count <= 0) { clearInterval(counter); window.location = 'https://afflift.com' return; } } </script>
There are more scripts you can use for pop and push traffic if you search for them in affiliate forums (afflift or STM). Some of them might not be accepted in strict traffic sources though, so proceed at your own risk if you decide to use them.