If you want to register pages that a specific user has visited, you can use the Google Analytics function "_trackEvent".
For each page that requires user tracking, you can add JavaScript code that looks like this:
var GAEventCategory = 'pageName'; // the name of the current page var GAEventAction = 'pageVisit'; var GAEventLabel = 'user_123'; // any value that uniquely identifies a user _gaq.push(['_trackEvent', '" + GAEventCategory + "', '" + GAEventAction + "', '" + GAEventLabel + "']);
Then in Google Analytics to see all pages user_123 'saw:
- Go to Standard Reporting.
- Set "Primary Dimension" as "Event Category".
- Set Secondary Measurement to Event Label.
- Set "Advanced Filter" to enable only event labels containing "user_123" and apply the filter.
Then you should see a report listing the various page names in the "Event Category" column and "user_123" in the "Event Label" column, and counting unique events and summary events.
source share