angulartics / angulartics-google-tag-manager

34 stars 35 forks source link

Tag manager events are not getting fired #23

Closed Debananda closed 6 years ago

Debananda commented 6 years ago

Triggers are not firing in interaction event. Below are the details

image

"angular": "^1.6.7", "angulartics": "^1.5.0", "angulartics-google-tag-manager": "0.0.1",

Variables `

Name Type Variable Name
angulartics page path Data Layer Variable V2 content-name
angulartics event category Data Layer Variable V2 target
angulartics event action Data Layer Variable V2 action
angulartics event label Data Layer Variable V2 target-properties
angulartics event value Data Layer Variable V2 value
angulartics event interaction type Data Layer Variable V2 interaction-type
angulartics user id Data Layer Variable V2 userId

`

Triggers `

Name Event Event Name
Angulartics events Custom Event interaction
Angulartics pageviews Custom Event content-view

`

Name: Angulartics Events

Product: Google Analytics
Type: Universal Analytics
Tracking ID: YourGoogleAnalyticsID
Track Type: Event
Category: {{angulartics event category}}
Action: {{angulartics event action}}
Label: {{angulartics event label}}
Value: {{angulartics event value}}
Non-Interaction Hit: {{angulartics event interaction type}}
More settings > Fields to Set > name: page, value: {{angulartics page path}}
More settings > Fields to Set > name: cookieDomain, value: auto
More settings > Fields to Set > name: userID, value: {{angulartics user id}}
Fire On: Angulartics events
DanWilkerson commented 6 years ago

How are you trying to call the event?

Debananda commented 6 years ago

I am using the below snippet to call the event <button analytics-on="click" analytics-event="Angulartics events" analytics-category="{{app.category}}" analytics-label="{{app.displayName}}" data-ng-click="$ctrl.gotoApp($index)">{{app.displayName}}</button>

even I have tried with $analytics.eventTrack('interaction', { category: app.category, label: app.displayName });

DanWilkerson commented 6 years ago

Are there any exceptions in the console? Do you have the core lib and the GTM module installed?

Debananda commented 6 years ago

nope there are no exceptions in the console. and tag manager is installed correctly. we have configured some other events with class name. those are working fine. we have just started looking into the angularjs implementation and facing this issue

DanWilkerson commented 6 years ago

Do you have both angulartics and angulartics-google-tag-manager required in your app? Beyond that, I'm not sure I can help here. The functionality in question has been used by many others without issue, so my suspicion is that the problem is specific to the implementation you're working with.