To track your app events in Google Analytics, define the
appEvent
tag in your Google Tag Manager account. This tag
requires that you define its properties as well as the macros and rules it
relies on.
Table 1. Tag
Definition
Property
|
Value
|
Tag Name
|
appEvent
|
Tag Type
|
Universal Analytics
|
Tracking ID
|
{{gaProperty}}
|
Track Type
|
Event
|
Table 2. MacrosEach of the following event tracking parameters has a macro defined
for it, with the specified names.
Event tracking parameter
|
Macro name
|
Macro type
|
Data layer variable name
|
Event Category
|
{{appEventCategory}}
|
Data layer variable
|
{{appEventCategory}}
|
Event Action
|
{{appEventAction}}
|
Data layer variable
|
{{appEventAction}}
|
Event Label
|
{{appEventLabel}}
|
Data layer variable
|
{{appEventLabel}}
|
Event Value
|
{{appEventValue}}
|
Data layer variable
|
{{appEventValue}}
|
Application Version
|
{{appVersion}}
|
Data layer variable
|
{{appVersion}}
|
Tracking ID
|
{{gaProperty}}
|
Data layer variable
|
{{gaProperty}}
|
Table 3. RulesThe following rule is associated with the tag
appEvent
.
Rule Name
|
Description
|
appEventRule
|
{{event}} equals
appEvent
|