Monday, 15 July 2013

javascript - Google analytics goals with reveal.js -


I'm revealing. Js (), which generates a URL with a hash and slide id, for example: www.my-domain.com/## slide1> www.my-domain.com / # / slide2.

I want to set up goals in Google Analytics for some slides, so I know that the user can have a certain point, how can I do this?

I tried to use the full URL as a target, but it does not seem to work in any idea?

I do not know. Js. But it comes to conversation with the audience with the slides in the event. An example is for slide change events, where you can add event tracking code:

  Reveal. AddEventListener ('slidechanged', function (event) {// event.previousSlide, event.currentSlide, Event.indexh, event.indexv ga ('Send', 'Event', 'Slide', 'Click', event.currentSlide );});  

Event is an object that gives you some information about the interaction through the object properties. Do not be confused with the fact that both the "Event" in the GA tracking code and uncover.js code; The latter is a javascript event, pre-analytics has only one naming convention (the bordly speaking event is used to track the stuff that does not trigger the page load).


No comments:

Post a Comment