
Originally Posted by
fakeDecoy
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