Skip to content

MartijnOud/advanced-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Advanced Metrics

This is a small jQuery addon that will allow you to automatically collect event data and send it to Google Analytics.

Features

  • Tracks all clicks on mailto: links
  • Tracks all clicks on tel: links
  • Tracks all external links clicks
  • Tracks .pdf downloads
  • Tracks .docx downloads
  • Tracks .doc downloads

Requirements

  • Requires jQuery (Note: gets automatically loaded from code.jquery.com if unavailable)
  • Requires Google Analytics global site tag (gtag.js) or Analytics for Web (analytics.js)

This sends event data to Google Analytics. You can choose to create this as goals/conversions. Learn how on my article about tracking mailto: and tel: links.