Lambda killed App
Lambda killed App

Reputation: 684

Using Google analytics for Logged in User to get Session Duration

I have Community running in PHP, I want to use Google Anayltics to determine, which page has most visit by which username / IP address.

Is it possible using Google Analytics ? Can i configure my google analytics to get session duration for each username [if available ] or IP address and for each page they visit ?

Thanks

Upvotes: 1

Views: 165

Answers (1)

Eike Pierstorff
Eike Pierstorff

Reputation: 32780

GA does not expose IP addresses in the interface and you mustn't send information to Google that identify a user. So while what you want is possible in principle it's not possible/allowed within the regime of the GA terms of service for for those two criteria.

One solution would be to create a hash value from the username and send that along with your hits as a custom dimension. You could then download the page statistics and resolve the hash by comparing it to data stored in your backend.

Upvotes: 1

Related Questions