Hey there,
I've been trying to place a back button redirect on my landers, and hasn't seemed to be working.
I've tried 2 codes so far -
First I tried @matuloo's script from his blog: http://www.matuloo.com/maximize-your...ript-included/
<script>
function init() {
setTimeout(function(){window.scrollTo(0,1)},0);
}
window.history.pushState(‘back.html’, ‘back’, ‘back.html’);
window.history.pushState(‘index.html’, ‘Index’, ‘index.html’);
window.addEventListener(“popstate”, function(e) {
if(document.URL.indexOf(“back.html”) >= 0){
document.location.href = document.location;
}
});
</script>
then I tried @affiliatecase code from his blog:
https://www.affiliatecase.com/back-button-redirect/
Code:
<script>
history.pushState(null, null, document.location);
window.addEventListener(‘popstate’, function () {
window.location=”https://www.yourtargeturl.com”;
});
</script>
But neither seemed to work. Also I've read some articles saying that Chrome has/is ending the back button redirect? Is this the case? Or am I doing something wrong? When I try these codes, they don't work in Safari either, has the back button redirect stopped working or am I doing something wrong here? This is for desktop by the way.
https://www.trustedreviews.com/news/...button-3637906
https://nakedsecurity.sophos.com/201...r-back-button/
<script type="text/javascript">
! function () {
var t;
try {
for (t = 0; 10 > t; ++t) history.pushState({}, "", "#");
onpopstate = function (t) {
t.state && location.replace("yourbackbuttonurl.com")
}
} catch (o) {}
}();
</script>
This works.
I haven't ran a back button script in some time, but looked at some of my old landers and noticed those weren't working either on desktop...
eurosen's code works fine on Desktop Chrome... but mobile it doesn't work for me...
I have chrome version 75.0.3770.101 on my phone and that script from eurosen does nothing... 
Is anyone having similar results?
I just checked mine. Working on desktop still and not working anymore on my chrome mobile app.
https://www.affiliatecase.com/back-button-redirect/
I know I said adding it into the header in the article, but try adding it towards the footer, just before </html> and see what happens.
Seems to still work for me. Here are some stats from just now for the back button link.
Attachment 21545
Attachment 21546
I just tried 3-4 different scripts and can't get any of them to work on mobile. Chrome might of successfully killed off the back-button on mobile as they set out to do.
According to my back-button campaign, it's still working 100% fine as of my most recent conversion 2 minutes ago and ~80% of my traffic is from Chrome mobile. I use the same JS script that eurosen posted above. No problems here.
Still should work just fine.
My script works just fine and I'm using one that I found from this thread.
i have been using back button redirect script for my mobile campaigns, and it works just fine !!
It does seem the eurosen code is in fact working. I can't get it to work when I test it myself on my own devices. But when I add it to my campaign it does get clicks.
Here are two things that maybe the reason why it appears to be working... Just something to think about...
1. Mobile users with older chrome installs, and other browsers...
2. If you interact with the web page by clicking anywhere, it seems to allow the back button scripts to work as they should on Desktop. I just tested on mobile, and it works the same way... tap anywhere... and presto, back button works... ( Is there a way to fool the browser in thinking action took place? )
So, does anyone know how to fake a "user action"?
I tried doing a automatic form submit targeting a hidden iframe and it failed...
As far as I know, you can't make a click happen without the user doing it...
I guess who ever has those fancy popup scripts that have work-arounds could make the back button work like it used to...
All is not lost... the back button will still work on "real" visitors, as in visitors that are actually worth sending to your exit path...
just get them to click something/anything...
I use something like @matuloo's script on several desktop sites and they all work fine on desktop safari/edge/firefox/opera... and even mobile. Depends on the browser.
But yeah, it seems it doesn't work well on newer versions of mobile and desktop chrome. I believe they've deprecated window.history.pushState so it won't work in any future versions either.
But I'm sure someone will work around it 
Same here, Usually people dont update their browsers etc regularly, IMO that is the reason we are still gettng conversions...
Guys, this one works
<script>
var referrerurl = document.referrer;
function getUrlParam(field){
var href = referrerurl;
var reg = new RegExp( '[?&]' + field + '=([^&#]*)', 'i' );
var string = reg.exec(href);
return string ? string[1] : null;
}
var aclid = getUrlParam("aclid");
var campaignid = getUrlParam("campid");
var banid = getUrlParam("creaid");
var sitename = getUrlParam("sitenm");
var country = getUrlParam("locate");
var spotname = getUrlParam("spotnm");
var sendurl = "CAMPAIGN LINK HERE";
var clicked=0;
if (typeof history.pushState === "function") {
history.pushState("goback", null, null);
window.onpopstate = function () {
if (clicked == 0){
history.pushState('newgoback', null, null);
window.location.href = sendurl;
clicked++;
}
else if (clicked == 1){
history.pushState('newgoback', null, null);
window.history.go(-1);
}
};
}
function promotion() {
setTimeout(function(){
window.open("CAMPAIGN LINK HERE","_self","false");
}, 50);
}
</script>
still does not work on new (ver. 75) chrome mobile... both android and iOS
I just tried it but it does not work for me on desktop Chrome.