This is a small jQuery addon that will allow you to automatically collect event data and send it to Google Analytics.
- 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
- 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.