Reputation: 7758
I know it is against Google Analytics terms of service to store personal information about a user i.e. email address, log in name. But I have a requirement that need to track time spent on site/page for a user by email address.
Has anyone done this before?
Upvotes: 3
Views: 193
Reputation: 53578
The terms are a bit more specific than that (if they weren't, google-analytics would not be usable on sites with user logins at all), but the question is why you need to track them by email address. As long as your user is logged in, all you have to do is set a session ID when they log in, and then track that session ID when it's being used for content requests. For PHP backends this is described in http://www.php.net/manual/en/intro.session.php but other server-side languages have similar functionality.
Upvotes: 1