outofcopyright / outofcopyright-website

Website components for OutOfCopyright.eu
http://outofcopyright.eu
Other
0 stars 2 forks source link

Possibility to add chosen calculators to a Google Analytics account as an event? #31

Closed mzeinstra closed 9 years ago

mzeinstra commented 9 years ago

Hi,

I've been thinking about how to measure which calculators are populair on our ooc.eu. I've been wondering if it would be possible to add Google Analytics event when a conclusion has been reached for a certain calculator.

That way we can track it using this account: UA-1301359-23

jeromejesse commented 9 years ago

Ok I have include the tracking script, I need a feedback. Do you see the visit on the website ?

mzeinstra commented 9 years ago

I've given you access, so you can check it yourself as well. I don't see any events for today.

mzeinstra commented 9 years ago

Ah I see,

The implementation I see in the commit do not answer the issue I openend.

I want to track to a specific event. See: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide

I want it to track when someone finishes a particular calculator.

So when you show the result you also do _gaq.push(['_trackEvent', 'Calculators', 'Sui Generis Database Rights','English']); where the last two are filled in by the name of the decision tree and the chosen language.

Is that possible?

jeromejesse commented 9 years ago

Ok it was change. Now you have to call the function ga('send', 'event', 'Calculators', "Austria", "EN");

I had test. You can see the events.

mzeinstra commented 9 years ago

We are almost there. I want it on finishing the calculator, not changing the language :)

See my comment https://github.com/outofcopyright/outofcopyright-website/commit/ab509e1a22551355914130066c4264d35c219b31

jeromejesse commented 9 years ago

The event is implemented.