No develer action is required on this section. AnalyticsAgency will the following using auto-events.
Step1: Create a 2 new tag triggered all pages these will enable two new functions: Link Click & Timer:
Step2: Add a new macro called “Click URL, Click Path & Click Hostname”
Rule1: PDF download:
{{Event}} equals gtm.linkClick
{{Click Path}} ends with .pdf
Rule2: Mailto links:
{{Event}} equals gtm.linkClick
{{Click URL}} starts with mailto:
Rule3: Telephone (tap to call) links:
{{Event}} equals gtm.linkClick
{{Click URL}} starts with tel:
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)$
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)$
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.
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.
{{Event}} equals gtm.historyChange