Support » Plugin: Google Tag Manager for WordPress » Err_Unknown_URL_Scheme

  • Resolved florianmarianna

    (@florianmarianna)


    Hello,

    I have this error in the browser console which comes from the tag added by your plugin. It says the error is at the end of this line :

    //www.googletagmanager.com/gtm.'+'js?id='+i+dl;f.parentNode.insertBefore(j,f);

    This is the full code in my source code :

    <script data-cfasync="false">//<![CDATA[
    (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
    '//www.googletagmanager.com/gtm.'+'js?id='+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document,'script','dataLayer','GTM-PW2GXJQ');//]]>
    </script>

    Could you have a look at this?

    Thanks!

    Florian

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Florian,

    Please post the URL of your site where I can see this error message.
    Based on the code that you provided this should work without issues.

    florianmarianna

    (@florianmarianna)

    hmm it’s strange, I don’t see the error in the console anymore…

    Well, I’ll let you know if it happens to show again.

    Thanks for your help!

    Florian

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.