Google Analytics Event Tracking
What is Google Analytics Event Tracking?
With Google Analytics connected to your digital workplace, you can also set up Event Tracking. Event Tracking lets you record events on objects within your digital workplace. These metrics can then be measured against the desired goal.
Setting up Event Tracking
Setup a Goal in Google Analytics by doing the following:
- Click the ADMIN button found on the left navigation menu.
- Select Goals from the View column.
- Click NEW GOAL.
- Setup Step 1: Select Custom for Goal. Click Continue.
- Setup Step 2: Give the goal a Name and select Event as the Type. Click Continue.
- Setup Step 3: Enter the Goal Details. Category, Action, and Label will be used in the Igloo side setup. Click Save.
Next, add JavaScript to your digital workplace at the location where you want to track actions. The Advanced page is the best location for this script. This JavaScript will take the form:
<script type="text/javascript"> //<![CDATA[ (function($) { $(function() { $('{identifier}').click(function(evt) { ga('send', { hitType: 'event', eventCategory: '{Category}', eventAction: '{action}', eventLabel: '{label}' }); }); }); })(jQuery); //]]> </script>
Replace the following sections:
- {identifier}: Enter the CSS selector of the object you want to track.
- {Category}: Enter the Category value associated with the Goal in Google Analytics.
- {action}: Enter the Action value associated with the Goal in Google Analytics.
- {label}: Enter the Label value associated with the Goal in Google Analytics.
- 265 views
- 0 previews
- 4 versions
- 0 comments
- 1 follower
- Updated By:
- Jesse Langstaff
- September 5, 2018
- Posted By:
- Jesse Langstaff
- September 5, 2018
- Versions:
- v.4
Viewed 265 times
0 Comments