3 votes

Google Analytics Events for Umbraco

 

A package for adding manageable GA Event Tracking to your Umbraco site.

Install

  1. Install the Google Analytics Events for Umbraco package
  2. Include the event tracking script via the HTML helper anywhere AFTER you have included Google Analytics in your master template page.

Adding Using Statement

Make sure to add a using to access the HTML helpers. Typically you do this at the top of the razor template


@using UmbracoGAEventTracking


Including Google Analytics

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

Including the Tracking Script

Next, just add this bit of razor code anywhere AFTER you include GA in your master template


@Html.IncludeGaEventTracking()

How to Use

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.

Standard Events

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

Advanced 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

Screenshots

Package owner

Luke

Luke

Luke has 99 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.2.x (untested)
8.1.x (untested)
8.0.x (untested)
7.15.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (100%)
7.11.x (100%)
7.10.x (100%)
7.9.x (untested)
7.8.x (untested)
7.7.x (100%)
7.6.x (untested)
7.5.x (100%)
7.4.x (100%)
7.3.x (0%)
7.2.x (0%)
7.1.x (0%)
7.0.x (0%)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Luke
  • Contributors: Paul Seal
  • Created: 23/11/2016
  • Current version 1.0.2
  • .net Version 4.5.2
  • License MIT
  • Downloads: 1101

External resources