No develer action is required on this section. AnalyticsAgency will the following using auto-events.

image104

 

Step1: Create a 2 new tag triggered all pages these will enable two new functions: Link Click & Timer:

image105

 

Step2: Add a new macro called “Click URL, Click Path & Click Hostname”

image106

 

Rule1: PDF download:

{{Event}} equals gtm.linkClick

{{Click Path}} ends with .pdf

image107

 

Rule2: Mailto links:

{{Event}} equals gtm.linkClick

{{Click URL}} starts with mailto:

 

image108

 

Rule3: Telephone (tap to call) links:

{{Event}} equals gtm.linkClick

{{Click URL}} starts with tel:

image109

 

Rule4: Outbound links (not to social):

{{Event}} equals gtm.linkClick

AND {{Click Hostname}} does not contain clientdomain.com

AND {{Click Hostname}} does not match regex

(^|.+.)(facebook.com|twitter.com|linkedin.com|plus.google.com|flickr.com|youtube.com)$

image110

 

Rule5: Social outbound links:

{{Event}} equals gtm.linkClick

AND {{Click Hostname}} matches regex

(^|.+.)(facebook.com|twitter.com|linkedin.com|plus.google.com|flickr.com|youtube.com)$

image111

 

Rule6: 30second event Heartbeat for blog or publishers:

{{Event}} equals gtm.timer

Tip: Auto-timer uses milliseconds not seconds. DONT just enter “20” in this box, it needs to be 20000. Try googling for the time conversion here.

image112

 

Rule6: Buttons:

{{Event}} equals gtm.linkClick

AND {{Click Classes}} contains button

Note: Auto Event Class macro will need to be added and the class will need to match the name of the button.

 image113

image114Rule11: Ajax tracking

{{Event}} equals gtm.historyChange

image115

0117 3361103