This package has been converted to a paid package with more features! gaevents.net
A package for adding manageable GA Event Tracking to your Umbraco site.
Install
Make sure to add a using to access the HTML helpers. Typically you do this at the top of the razor template
@using UmbracoGAEventTracking
For your convenience, we have a handy HTML helper available for outputting the Google Analytics script.
You do not have to use this method if you have already included Google Analytics included but if you do, make sure to set your API key.
@Html.IncludeGoogleAnalytics()
Set your API key in the properties of the Root Event Tracking content node
Next, just add this bit of razor code anywhere AFTER you include GA in your master template
@Html.IncludeGaEventTracking()
After installing the package you will see that we have added a whole bunch of events for you
Feel free to delete these if you wish, they are just there to help you get going.
These events are aimed at making the process easier for simple events that don't require a huge amount of configuration
Using stardard events makes things quicker and easier but give you less control over the label and less actions to choose from
90 % of the time we only expect you to need standard events
These events are for when you need more control
The label field lets you specify a template string to use. For example, "My label string {PAGE_URL}"
For more inforormation. Please go to our documentation site found via the Project Site link
This package was lovingly created by Luke Warren from Syncrony and Paul Seal from MEDIAmaker