• Stop being a LURKER - join our dealer community and get involved. Sign up and start a conversation.

Reply to thread

I like the event listener and pushing events into GA. Here's the problem. There's so many events being pumped into GA now from the website that more events would just cause issues without them being filtered correctly. The best advice I could offer would be to create a separate dashboard (I know [USER=8479]@Alexander Lau[/USER]!! I said create another dashboard!! LOL) But... If you create a separate dashboard in GA, you can filter and set up the events sent into the GA account. As far as creating a list of Events to send into GA, why not just send in everything to GA??  Once you have everything meaning every click, you can then filter with your Dashboard widgets. You could use a code similar to this:


[CODE]window.onclick = function(e) { console.log(e.target)};[/CODE]


and instead of "console.log", insert your GA event info in it. That would pass every click made on the site. All the link URL clicks, Div elements clicked, EVERYTHING!! Go into GA and then on your newly created dashboard set up the widgets to filter everything out based on link info. Pass the link Href info as the lable in the event fired. Or break it up into an array and split up the Href for your eventCat, eventAction,eventLabel.


This wouldn't be a 100% fix to cut out some of the custom stuff like, Length of time a video was played, etc.. but, It will cut down time having to create all the custom events. I'd say this will probably get you about 80 - 90% of the way though!!!  


Here's a link that shows how to create a Dashboard in GA.

https://support.google.com/analytics/answer/1068218?hl=en




THEN... If your feeling friendly, you could share that dashboard ;)


Just an idea!!