Support » Plugin: DuracellTomi's Google Tag Manager for WordPress » Uncaught SyntaxError: Unexpected token }

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author duracelltomi

    (@duracelltomi)

    Could you post the URL of your site?

    Hi,

    bigbestbuy[.]asia

    Thanks

    Plugin Author duracelltomi

    (@duracelltomi)

    Hi,

    You placed that one line of PHP code to the wrong place.
    Instead of the <head> section, move it just _after_ the opening <body> tag

    Cheers,
    Thomas

    The problem have gone. Thanks.

    Can I move you 2 js at head section to after body section or footer for page load speed optimization?

      Plugin Author duracelltomi

      (@duracelltomi)

      The datalayer needs to be setup in the head section, the GTM container code has to be created after the <body> tag thus I do not advise to move any code to somewhere else

      Hi, noted and thanks. With your plugin can ignore to have WooCommerce Google Analyticd plugin, look like your plugin have same features.

      I am newbie, still further digging to leverage yr plugin, except yr plugin standard features, any other tag need my peraonal added in google tag manager for blog post and WooCommerce product post.

      Any useful tutorials guide artical or link for me further digging study.

      Thanks.

    Viewing 6 replies - 1 through 6 (of 6 total)
    • The topic ‘Uncaught SyntaxError: Unexpected token }’ is closed to new replies.