Google Analytics click events stopped tracking after switching to Google Tag Manager
Google Analytics tracks several on-click actions on our site (http://www.trinityschoolofmedicine.org/), and it was doing so just fine when we used the native Hubspot/Google Analytics integration. However, we decided to disable the integration and place the Analytics code in Google Tag Manager (GTM) instead, and all click-based events stopped tracking. Sessions and any Destination URL goals continued to track properly.
The reason we switched to GTM was to easily create a variable in GTM that would capture the Hubspot User Token (hutk) and pass that to Google Analytics as a User ID and custom dimension. This would allow us to see in Analytics all the conversion actions an individual user took instead of just seeing aggregate total conversions. The user token was successfully being passed into Analytics as a User ID and custom dimension when we set it up in GTM.
Google Analytics click events stopped tracking after switching to Google Tag Manager
Never mind, the issue was just that the on-click events had to live within Google Tag Manager as well, but they were hard-coded on the site. We set up on-click triggers within GTM and everything’s working now!