GA Event Tracking Generator

The code below helps you to generate Google Analytics onClick event tracking for the latest gtag.js version of analytics. If your website uses the older versions of Google Analytics, you should update to the new one before proceeding in using this tool.

https://developers.google.com/analytics/devguides/collection/gtagjs/