I am using Angulartics to do the tracking on my website. http://ift.tt/1stwwJB
Events are tracked on mixpanel as well as google analytics. Mixpanel events are tracked as desired. However, Google analytics does receive the page views but does not track any events at all. I know that GA requires a "category" as well as a "action" to be set for each event.
So my event tracking basically looks like this,
<a ng-click="bookingModal($parent.$index)" href="{{trip.bookings[0].providers[0].url}}" target="_blank">Test </a>
Basically, I have a simple ng-click on my event (some events can be fired without clicking).
in my controller I have the following:
$scope.bookingModal=function (trip){
var clickedIndex=trip;
var detailTracker={
eventCategory: 'bookingModalClicked',
eventAction: 'bookingModalClicked Action',
userMail:Auth.user().email,
userName:Auth.user().user,
clickedIndex: clickedIndex
};
$analytics.eventTrack('clickBooking',detailTracker);
This tracking works perfectly fine with mixpanel, but events are not tracked with GA. What am I doing wrong? I dont seem to find my mistake.
Aucun commentaire:
Enregistrer un commentaire