Subdomain as a filter (Google Analytics API)
We are new to Google Analytics (GA), and we are trying to figure out if we
should use it for our use case, which is:
Suppose that we have a domain, say example.com
And we have hundreds of users.
And each user should get his/her own 'website' which actually is a
subdomain of our site
(e.g. steve.example.com)
We would like to -
-----------------------
1. not require each user create a separate GA account (& code).
2. show each user's web-analytics stats in his/her own site
To get the above, will the following work ?
------------------------------------------------
1. we will create 1 GA account/tracking-code for example.com
2. we will use Google Analytics API to get data
3. to retrieve data only for 1 subdomain (user), we will specify the
respective subdomain as a filter
Is 3 possible ? i.e. Will we be able to send queries to Google Analytics
API that include subdomain as one of the filters (alongwith Metrics &
Dimensions like PageViews & Location) ?
Research/Reading that I have done:
---------------------------------------------
1. Most solutions are pointing towards creating separate Profiles for
different SubDomains, but this is not an option for us, since there are so
many of them, and also 50 seems to be a limit on the number of Profiles
that each Domain can have (from
https://developers.google.com/analytics/resources/concepts/gaConceptsAccounts
)
2. Google Analytics does not allow tracking codes/profiles to be created
via API
No comments:
Post a Comment