Skip to content
dannyyaou edited this page Aug 25, 2015 · 3 revisions

This plugin was built against GTM v1 and requires that certain GTM pieces be configured manually in GTM rather than using it straight out of the box.


Setup listeners in Google Tag Manager

  • 6 User-Defined Variables
    • Variable Name: page path
      • Variable Type: Data Layer Variable
      • Data Layer Variable Name: content-name
    • Variable Name: event category
      • Variable Type: Data Layer Variable
      • Data Layer Variable Name: target
    • Variable Name: event action
      • Variable Type: Data Layer Variable
      • Data Layer Variable Name: action
    • Variable Name: event label
      • Variable Type: Data Layer Variable
      • Data Layer Variable Name: target-properties
    • Variable Name: event value
      • Variable Type: Data Layer Variable
      • Data Layer Variable Name: value
    • Variable Name: event interaction type
      • Variable Type: Data Layer Variable
      • Data Layer Variable Name: interaction-type
  • 2 Triggers
    • Trigger Name: events
      • Choose Event: Custom
      • Fire On: {{event}} equals interaction
    • Trigger Name: pageviews
      • Choose Event: Custom
      • Fire On: {{event}} equals content-view
  • 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
Clone this wiki locally