Reputation: 4531
I'm having problems integrating cordova-plugin-tag-manager. I've installed plugin and configured GTM ID in project. Success and Error callbacks seems to be working on android (I've debugged with LogCat), I'm having response from GTM, but can't see hits on analytics realtime report.
Upvotes: 0
Views: 929
Reputation: 4531
I've found a solution. You must configure GTM tags like said in this plugin wiki page to have hits on analytics report:
https://github.com/kraihn/cordova-plugin-tag-manager/wiki/GTM-Setup
Setup listeners in Google Tag Manager
6 User-Defined Variables
2 Triggers
2 Tags
Tag Name: Events, Tag Type: Universal Analytics, Tracking ID: YourGoogleAnalyticsID, Track Type: Event, Category: {{event category}}, Action: {{event action}}, Label: {{event label}}, Value: {{event value}} Fields to Set: appName = {{App Name}}, appVersion = {{App Version Code}}, screenName = {{page path}}, Firing On: events
Tag Name: Pageviews, Tag Type: Universal Analytics, Tracking ID: YourGoogleAnalyticsID, Track Type: App View, Fields to Set: appName = {{App Name}}, appVersion = {{App Version Code}}, screenName = {{page path}}, Firing On: pageviews
Upvotes: 1