Problem with script and AMP validation

Posted in: Newsmag
Post count: 94

Hi
I’m writing to you to have your help to detect what’s the origin of this script I found at the end of the <head> section of all articles on http://www.greenplanner.it

<script data-cfasync=”false”>$SA = {s:254241, tag_info: “1.0.1-autotag”, asynch: 1, useBlacklistUrl: 1};(function() { var sa = document.createElement(“script”); sa.type = “text/javascript”; sa.async = true; sa.src = (“https:” == document.location.protocol ? “https://&#8221; + $SA.s + “.sa” : “http://&#8221; + $SA.s + “.a”) + “.siteapps.com/” + $SA.s + “.js”; var t = document.getElementsByTagName(“script”)[0]; t.parentNode.insertBefore(sa, t);})();</script>

unfortunately it’s the script that avoid the AMP validation of my posts

I can’t find which plugin insert it into the code… is it a theme script? can you please help me to delete it?

thanks

Post count: 6535

Hi

This is not a script generated by the theme so it’s possible to be generated by a plugin. Try to deactivate all plugin except Visual Composer, clear all caches, purge cdn files ten check if the script is still there. The script may also be generated by a code added in a js row if you’re using something similar or an ad code provided by a network different by ad-sense.
Also if you made any custom modifications in theme’s core file make sure that they don’t call/generate this script.

Thanks!

Post count: 9544

"siteapps.com" is kind of a giveaway in the code.
Some plugin you’re using is calling content from that “app site”

Post count: 94

thx

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.