Forum Moderators: martinibuster

Message Too Old, No Replies

Is Google ad recovery script just a message?

A visitor seems to be able just to close the message

         

lzr0

7:15 am on Jul 28, 2024 (gmt 0)

10+ Year Member



I thought Google's ad blocking recovery tagging script would prevent visitors from entering the site with enabled ad blockers. But in my test I see one can just close the message and view the page. Am I missing something?

CommandDork

2:05 pm on Jul 28, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I think you are seeing its proper function. I thought it was more of a 'gentle suggestion' for visitors when they view your site with ad blocking on to perhaps nudge them to turn it off.

Anything more than that would have to be handled by you server side me thinks.

makintocheplus

9:17 am on Jul 30, 2024 (gmt 0)

Top Contributors Of The Month



I tried Google's anti Adblock, it worked for few days then it stopped working..

I ended up using a script that detects errors fetching Google AdSense script an redirection detection. It works perfectly. I made the notification show only once a day. The only way to get rid of it is to refresh the page.

lzr0

9:30 am on Jul 30, 2024 (gmt 0)

10+ Year Member



@makintocheplus
You must be right about this script

makintocheplus

12:24 pm on Aug 1, 2024 (gmt 0)

Top Contributors Of The Month



Here is the main function:


function ezsimple(callback) {
const scriptUrl = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';

fetch(scriptUrl, { method: "HEAD", mode: "no-cors", cache: "no-store" })
.then(response => {
// Check if the response was redirected
if (response.redirected) {
callback(true); // Ad block likely active if redirected
} else {
callback(false); // Ad script loaded successfully
}
})
.catch(() => {
callback(true); // Ad block likely active if script fails to load
});

}

lzr0

9:19 am on Aug 2, 2024 (gmt 0)

10+ Year Member



@makintocheplus
Thank you for posting the code. I am not a expert on the scripting, so I personally would not deal with it by myself. In my case Google script works (just as nag). In the past I used a script from blockadblock.com but it no longer works, and the owner does not seem to update it any longer.

Pjman

11:14 am on Aug 29, 2024 (gmt 0)

10+ Year Member Top Contributors Of The Month



The display ad company, I have used for a while, offers this (ad block recovery) and man does it work great on some niches! The more tech oriented your audience is, the bigger the impact. On my less techie niches it will raise RPMs 10-20%. On more tech heavy sites, I get 50-60% RPM bumps about a month after I implemented it. It also ads an extra revenue stream because if they refuse to turn off ad block, it only allows them to use the site by signing up for a membership. Overall, same traffic, most sites get a 30% revenue lift that I have put it on. All I have to do is add a line of code in head, the ad company does the rest.