[help] Can I delay Google adsense GDPR notice popup?

terrycody

Elite Member
Joined
Sep 29, 2012
Messages
6,422
Reaction score
3,323
We all know Google forces GDPR notice for sites on EU areas nows, you can use their default popup notice.

My question:

Can I delay this notice popup? For example, I want to delay 3-5 seconds then shows it, is it possible?

Anyone know how to do it?

message-116274558-11863727078471086933.png
 
I don't think Google themselves give an option, but maybe you could use javascript to insert the adsense code into the page after load + x number of seconds. Though this would of course cause delay of ads showing, and may mess with auto ads if you're using that option.

Another option would be to craft your own cookie consent modal that complies with Google's guidelines, and ask to use that instead of the adsense default one.
 
The only possible way we can do it like the javscript which makes website that triggers the GDPR notice popup. You'll have to wrap that script in another script that tells it to wait a bit before running. if you want to delay it for 3 seconds, you use 3000 like in the example above. If you want it to be 5 seconds, change 3000 to 5000. be careful with the delay because you still want to make sure you're complying with GDPR requirements. But yeah, doing the delay is totally possible like that.

Thanks!
 
Why would you want to do that? ~90% of user consent anyway
 
Back
Top