A package for adding manageable GA Event Tracking to your Umbraco site.
- Install the Google Analytics Events for Umbraco package
- Add the Following code to your master template (order is important)
@using UmbracoGAEventTracking;
@Html.IncludeGoogleAnalytics() // Only needed if you have not already included Google Analytics. You can add your GA Key in Umbraco.
@Html.IncludeGaEventTracking()
If you would like to use caching to save calls to the database, add this appSetting to your web.config file.
<add key="GAEventTracking_CachingTimeInMinutes" value="10"/>