Support » Plugin: WooCommerce Google Analytics Integration » Tracking code fails with [product_page} shortcode

  • Resolved David Wang


    Hi there,

    I’ve installed WC GA Integration and it works on all product pages e.g.

    However on a regular page with the product embedded with the [product_page] shortcode, only half the script is output to the page. Here is the same product embedded into a page with [product_page id="656"]

    Test page:

    I believe this is a bug, so I’m highlighting it here for your kind action. Thank you

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support John Coy


    Automattic Happiness Engineer

    Hi @blogjunkie

    In testing this I found the page with a product page shortcode shows within Google Analytics with no issues. Does this issue happen after switching back to a default theme like Twenty Seventeen and disabling all plugins except for WooCommerce and Google Analytics?

    Hey there, thanks for taking the time to look into this. I think I figured out the issue. I was previously using MonsterInsights for GA, and it has a wrapper function that handles events. I’m guessing it doesn’t account for the WooCommerce GA code because they offer a paid add-on for it. I switched to a different plugin and it works fine now. Sorry, I should have updated this thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tracking code fails with [product_page} shortcode’ is closed to new replies.