• Resolved karinhiking

    (@karinhiking)


    Hello,

    I got the message in the Google search console that Custom JavaScript is not allowed and it has to do with AMP. Almost all my pages are concerned and cannot be crawled. It shows that it is a script that must have been placed by your plug-in. I don’t know how to fix or remove this bc I am not a dev. Can you please help? Many thanks! It shows this:

    </amp-consent>

    <script type=”text/javascript”>window.setTimeout(function() { document.cookie = “_lcp3=a; Path=/; expires=Mon Mar 20 2034 13:02:58; SameSite=Lax” }, 1000);</script></body></html>

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi @karinhiking, this script is not placed by Complianz. I would recommend to disable your plugins one by one until it disappears. Then you know where it originates.

    Thread Starter karinhiking

    (@karinhiking)

    Hi Rogier,
    ok, thank you. I will try what you recommended. I just thought it was related to Complianz because the script was placed right under the following text below and because in the Complianz dashboard I saw the possibility to include the AMP Plugin, which I did initially and thought that this caused the problem…

    <div class="cmplz-consent-message"><h4 data-amp-original-style="text-align: center;" class="amp-wp-cdd8ca0">DATENSCHUTZEINSTELLUNGEN</h4>
    <strong>Wir verwenden Cookies und andere Technologien auf unserer Webseite. Einige von ihnen sind essenziell, w?hrend andere uns helfen, diese Webseite und Ihre Erfahrung zu verbessern. Personenbezogene Daten k?nnen verarbeitet werden (z. B. IP-Adressen), z. B. für personalisierte Anzeigen und Inhalte oder Anzeigen- und Inhaltsmessung. Weitere Informationen über die Verwendung Ihrer Daten finden Sie in unserer Datenschutzerkl?rung. Sie k?nnen Ihre Auswahl jederzeit unter Einstellungen widerrufen oder anpassen.</strong></div>
                        <button on="tap:consent-element.accept" role="button">AKZEPTIEREN</button>
                        <button on="tap:consent-element.reject" role="button">DENY</button>
                    </div>
                    
    
                </amp-consent>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Google Analytics Custom JavaScript is not allowed AMP’ is closed to new replies.