Google Analytics and Angularby Caryn Humphreys on July 19, 2015
The Scenario: You’ve built your web app using Angular and you’re just about ready to launch. You’d like some tracking to keep an eye on flow and behavior through your app (because you build > test > iterate, right?!).
The Solution: Thanks to Angulartics, you can automatically track virtual pageviews by default, including all navigation across all routes, through your entire application.
Once you’ve followed the instructions provided for installing the Angularitics package into your project, and you’ve added the attributes to the elements you’d like to virtually track, test them out!
Apply the Event Tracking
The two basics for event tracking are
analytics-event. Think of these as: on ‘click’, track event ‘name’:
Google Analytics also allows more refined tracking using category and label with
Sign in to your Google Analytics account, and navigate to the Reporting tab at the top. In the left-hand nav, open Behavior and select Events.
Here you’ll be able to see details on
labels you’ve set while customizing the tracking for your links.
See more about integrations and customizations here: Angularitics