Support » Plugin: Enhanced Ecommerce Google Analytics Plugin for WooCommerce » Not Working with Yoast Analytics plugin

  • Grant Derepas


    I have Yoast Analytics loading the primary Google Analytics for the site then this plugin will just add the enhanced ecommerce tracking.

    The problem is yoast analytics has their google analytics javascript variable set to __gatracker which causes your plugin to fire a not defined error in the console for the ga variable.

    I don’t want to enable the “Add Universal Analytics Tracking Code (Optional)” option because I don’t want to send duplicate pageviews for product pages.

    It would be great if you had an option to define the javascript variable used for google analytics.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tatvic


    Hi Grant,

    Since the javascript variable used in the GA code,in our plugin is the same as that set by the Google for the default Analytics tracker, we have not included to set the option for it.

    Additionally, Can you share with us the store URL so that we can have look at the error in your store?

    Hope this helps and I look forward to your reply.

    Grant Derepas


    Hi Tatvic,

    Since I’m running a live e-commerce store and the javascript error I mentioned was causing other scripts on the page not to run I’ve had to disable the plugin on our live site for now.

    By simply running yoast analytics and your plugin side by side on a development site you should be able to recreate the issue locally.



    Hey Grant, you can actually just point the ga variable to the Yoast variable by pasting the following in Yoast’s custom code section:

    __gaTracker( function() { = __gaTracker;
    Plugin Author Tatvic


    Hi Grant,

    Thank you for your patience.

    We request you to connect with us at analytics2(at)tatvic(dot)com, for more information to solve your issue.

    Hope this helps.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not Working with Yoast Analytics plugin’ is closed to new replies.