Support » Plugin: Flying Scripts » Google ADS not Work on my site

  • Resolved alexinsalento

    (@alexinsalento)


    Hello,
    I tried the plugin on my site but after entering “adsbygoogle.js” in the plugin field no ADS is returned.
    The adsense code is modified by the plugin like this:
    <script data-ad-client="ca-pub-xxxx" async data-type="lazy" data-src="data:text/javascript;base64,"></script>

    in the footer of the site there is this script:

    <script type="text/javascript" id="flying-scripts">const loadScriptsTimer=setTimeout(loadScripts,3*1000);const userInteractionEvents=["mouseover","keydown","touchstart","touchmove","wheel"];userInteractionEvents.forEach(function(event){window.addEventListener(event,triggerScriptLoader,{passive:!0})});function triggerScriptLoader(){loadScripts();clearTimeout(loadScriptsTimer);userInteractionEvents.forEach(function(event){window.removeEventListener(event,triggerScriptLoader,{passive:!0})})}
    function loadScripts(){document.querySelectorAll("script[data-type='lazy']").forEach(function(elem){elem.setAttribute("src",elem.getAttribute("data-src"))})}</script>

    Web developer tool nn reports any problems.
    The ADS code is manually inserted into the theme file (without plugins such as header & footer injection)
    How can I solve?

    • This topic was modified 2 years, 10 months ago by alexinsalento.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Google ADS not Work on my site’ is closed to new replies.