WordPress.org

Forums

Jigoshop
[resolved] Ecommerce tracking & Google Analytics universal analytics.js (7 posts)

  1. Ragnar Karlsson
    Member
    Posted 1 year ago #

    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?

    https://wordpress.org/plugins/jigoshop/

  2. Ragnar Karlsson
    Member
    Posted 1 year ago #

    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 );

  3. Jigoshop Support - Marcin
    Member
    Posted 1 year ago #

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

  4. Jigoshop Support - Marcin
    Member
    Posted 1 year ago #

    Hi Ragnar,
    can you check it out? Thanks!
    https://github.com/jigoshop/jigoshop/releases/tag/1.10beta3

  5. Ragnar Karlsson
    Member
    Posted 1 year ago #

    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?).

  6. Jigoshop Support - Marcin
    Member
    Posted 1 year ago #

    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!

  7. Ragnar Karlsson
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jigoshop
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic