Jimmy
Jimmy

Reputation: 12487

Use Google Analytics for individual users

I have a website where people post items and I want to show some basic analytics in their own user panels, such as how many people viewed the posted item.

I am wondering if I can use a single mothership Google Analytics account across the whole site. Then, in my code for the user area, I have it query Google Analytics for that specific users posts and return the number of visits that specific person has had.

So my google analytics account may say "200 views across the whole site" but within the specific users panel I will be able to say "Your posts received 50 views".

This is the closest bit of documentation I could find on the subject: https://developers.google.com/analytics/devguides/reporting/core/v3/

Upvotes: 0

Views: 64

Answers (1)

Todd
Todd

Reputation: 3103

It sounds like what you would need is multiple Google Analytics IDs / requests per page. This can be done with the newest version of Analytics, though not with the Classic Analytics.

You can certainly have multiple Google accounts access the single Google Analytics for a single domain. You can certainly split reporting capabilities and access to various Analytics features across multiple accounts.

From the docs:

You can install multiple instances of the Google Analytics tracking code on your web pages to send data to multiple properties in your account.

Read: more here.

Upvotes: 0

Related Questions