Results 1 to 10 of 43

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default Re: Easy Google Analytics - Support

    Also, this page mentions the below line is needed in the HEAD, but I don't see it used in the plugin. Nowhere in the file contents. I might just try adding it and see what happens.
    https://developers.google.com/analyt...nced-ecommerce

    Code:
    ga('require', 'ec');

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Easy Google Analytics - Support

    Quote Originally Posted by fakeDecoy View Post
    Also, this page mentions the below line is needed in the HEAD, but I don't see it used in the plugin. Nowhere in the file contents. I might just try adding it and see what happens.
    https://developers.google.com/analyt...nced-ecommerce

    Code:
    ga('require', 'ec');
    Yes. It needs the 'ec' extension else it won't work.

    That did actually cross my mind, but I saw in your code example
    Code:
    ga('ec:setAction', 'detail');
    ....which implied that the
    Code:
    ga('require', 'ec');
    ...would probably have been already coded into the module.

    FWIW, one of the reasons I created my own module for this is because I'd noticed that the existing tracking modules all needed some sort of code modifications for them to function, and at the time I was teaching myself a little more about the ZenCart notification system, and I came to realise that I could create a tracking module using this technique without having to modify existing code.

    It was developed as a 'proof of concept', but was found to be quite a good/useful idea, so I tidied it up a little and uploaded it to the ZenCart addons. https://www.zen-cart.com/downloads.php?do=file&id=1997

    I'm NOT going to suggest you replace Easy GA with ec_analytics though. Firstly because I think Easy GA tracks a few more things (by default) than the ec_analytics, and secondly, although both modules will function together quite nicely, there is the possibility that some things will end up being recorded twice, which isn't good for analytical purposes (having said that, Google itself seems to do an excellent job of avoiding such duplication).

    The *only* reason I'm mentioning ec_analytics is if, for any reason you can't get Easy GA to record what you need, then ec_analytics may be an easy solution (easy in that no code changes needed - just upload the files (nothing gets overwritten), provide the google userID, and it just works. No mess, no fuss, no configuration needed.
    Removal is just as easy as the install.

    Final note: My previous comment about taking a couple of days to see the results (after enabling the reporting) may still apply with your addition of the ga/require. IOW, as you've only just added that, if you aren't seeing immediate results, you'll still need to wait for enough data to be accumulated for any reports to show.

    Cheers
    RodG

 

 

Similar Threads

  1. Simple Google Analytics - Support
    By cuda in forum All Other Contributions/Addons
    Replies: 2160
    Last Post: 22 Dec 2020, 05:38 AM
  2. Easy Google Analytics vs google_conversion_currency
    By enzo-ita in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 8 Nov 2014, 06:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg