Support » Plugin: Jigoshop » Ecommerce tracking & Google Analytics universal analytics.js

  • Resolved Ragnar Karlsson


    I have enabled google analytics ecommerce tracking for a site and found that the ecommerce data does not record, because it is using the ga.js version instead of analytics.js

    Having had a look it appears that jigoshop_actions.php is the culprit so it should be possible to change the actions:

    wp_head, jigoshop_ga_tracking
    jigoshop_thankyou, jigoshop_ga_ecommerce_tracking

    Have I missed anything else?

    Will this be rectified in a newer version of Jigoshop so that the GA tracking can be set to the correct code?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Also as a follow up I’m not 100% certain that the following line (811) works as intended

    remove_action( ‘wp_head’, ‘jigoshop_ga_tracking’, 9999 );

    Hi Ragnar,
    Thanks for notificaion. You are right, it will be upgraded in next release.

    Hi Ragnar,
    can you check it out? Thanks!

    Marcin thanks for the fast response and beta code.

    Can confirm that 1.10beta3 modifications to jigoshop_actions.php do:

    1. enable analytics.js
    2. add ecommerce tracking js
    3. result in ecommerce tracking data in Google Analytics

    However you have moved the entirety to analytics.js and some sites may be using ga.js still (even if against Google recommendation).

    Strongly recommend for final release you add an option to allow user to choose between analytics.js (I suggest this is default) and ga.js (which could provide a warning?).

    thanks for confirmation,
    hm are you sure it’s needed? AFAIK new code will work whatever user has in analytics settings and if somebody is using Jigoshop to set it up we may assume newer code = better code? We prefer not to clutter panel with options that won’t be used by most users if not necessary.
    Let me know what you think about it!

    To be honest, I use the universal analytics exclusively so hadn’t checked. Looks like those using the old tracking method will still work for a while as Google say they will allow classic for 2 years after universal tracking became the standard.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Ecommerce tracking & Google Analytics universal analytics.js’ is closed to new replies.