Hi dtti,
thanks for reaching out.
That problem is normally caused by plugins that minify JavaScript on your site or moves code to the footer. Are you using anything like that?
I put a lot of thinking into making it work with such solutions, but maybe I overlooked something.
Please make sure that you also use the latest version of Advanced Ads (1.10.4) since I there was a fix for this not long ago.
Thanks,
Thomas
Thread Starter
dtti
(@dtti)
Hi Thomas thank you for your quick reply.
It’s the last version of Advanced Ads.
I use WP-Rocket but I tried to deactivate all Javascript minify/defer options in wp-rocket but i still see this error.
Thanks for testing.
Could you check if this also happens when you have the Privacy module disabled?
Thanks
Thread Starter
dtti
(@dtti)
Hi Thomas, with privacy module disabled the error doesn’t appair.
Thank you. Could you please enable the module again so that I can get a screenshot of the code generated?
I saw a huge difference between the code the plugin normally generates and the one on your site and would like to try to reproduce it.
Thanks,
Thomas
Thread Starter
dtti
(@dtti)
Ok it’s turned on again. (please note that now are also active minification/defer js)
Thanks,
Loris
-
This reply was modified 7 years, 9 months ago by
dtti.
Thank you. I don’t think it will break anything, but you can turn the module off again if this is annoying. I will start investigating this problem.
Thomas
Hi there, could I trouble you testing this:
Enable the Privacy module
Also go to Advanced Ads > Settings > General and enable the “Use advanced JavaScript” option.
Does that change anything?
Thanks
Thread Starter
dtti
(@dtti)
Perfect! Your suggestion resolved the problem.
Now the error disappeared.
Thank you Thomas!!
Thanks for letting me know.
I will make sure that we will get that dependency solved automatically.
Thomas