Google analytis share data with different users - google-analytics

I have a projet with some number of customers (more than 25). Each customer has theirs own subdomain (customer1.mydomain.com, customer2.mydomain.com, ...). I want to track pageviews from all domains and have one report for all domains for me as administrator. Each customer should be allowed so see reports, but only for his domain.
Example:
account: UA-XXXXXX-Y
customer1.mydomain.com and customer2.mydomain.com send data to this acccount
as administrator I can see all this data, add segments, divided by hosts. Also I can create views for these segments and allow users (customer1, customer2) to see only data from these segments. But google allows to add only 25 views and I have more that 25 customers.
Also I tryed to create several account and send pageview for my administrator account and then to current customer account, but ga('craete', 'another-ua') command doesn't recreate instane with new account, just using first created one.
Anyone can suggest any solution wih allows:
As administrator, I want see all data sepaated by hosts
As customer, I want to see only my own data and should not be able to see any other data

As #AllanS.Hansen wrote, this comment works:
It's going to be more work, but multiple trackers: https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_with_multiple_trackers. But it'll allow you to completely separate data

Related

GA 360 export to Big Query

We have just linked our GA360 account to BigQuery but we noticed from the docs that the userId doesn't get exported. This is really annoying as one of our main use case was to join the userId with our CRM system.
Why is Google not exporting the userId ? Is there workaround ?
Thank you for your answers.
The solution is to create a User level custom dimension and pass your user's ID into that as well.
There's no restriction on exporting your custom dimensions, and these are exported to BigQuery.
Enjoy :)
How User-ID works
User-ID enables the association of one or more sessions (and the activity within those sessions) with a unique and persistent ID that you send to Analytics.
To implement User-ID, you must be able to generate your own unique IDs, consistently assign IDs to users, and include these IDs wherever you send data to Analytics.
For example, you could send the unique IDs generated by your own authentication system to Analytics as values for User-ID. Any engagement, like link clicks and page or screen navigation, that happen while a unique ID is assigned can be sent to Analytics and connected via User-ID.
In an Analytics implementation without the User-ID feature, a unique user is counted each time your content is accessed from a different device and each time there’s a new session. For example, a search on a phone one day, purchase on a laptop three days later, and request for customer service on a tablet a month after that are counted as three unique users in a standard Analytics implementation, even if all those actions took place while a user was signed in to an account. While you can collect data about each of those interactions and devices, you can’t determine their relevance to one another. You only see independent data points.
When you implement User-ID, you can identify related actions and devices and connect these seemingly independent data points. That same search on a phone, purchase on a laptop, and re-engagement on a tablet that previously looked like three unrelated actions on unrelated devices can now be understood as one user’s interactions with your business.
From Google analytics about the userid feature the user id is used in the background by google analytics to analyse your data.
If you want to analyse on the user id you can just add it as a custom dimension you will then be able to see it.

A single google analytics account for many users - possible?

Is it possible to use a single google analytics account, in particular, e-commerce, for more than user? I fact, I need it to be used for as a lot of users. What I want in a nutshell is this:
The users come to my web site and provide me their e-commerce data in json or any other format somehow. I have a google analytics, so I take that e-commerce data and send to google analytics. And then show them the reports for their data from google analytics by google analytics API (I guess it's reports API?)
The question is not whether or not it is profitable, makes sense, etc. The question is, can I use my, single google analytics account to achieve what I've described above?
Yes you can. Since you need to keep the users apart in a way that does not allow them to look into other users data you can use a single account for up to 50 users, since this is how many data views you can have per account (view permissions can be set at account level)1. Filter the view by hostname (or whatever) to record only the current users data per view.
If you do not need the interface (i.e. if you want to query GA via the api and build custom dashboards) you can have even more - simply store in unique id per user and use that to filter the data before displaying it in a dashboard. So as far as that part of the question is concerned you are safe.
Where things probably start to fall apart is data collection. Is looks like you want to do some sort of batch processing of accumuluated e-commerce data. Since you cannot send a timestamp for a user interaction all dates within GA will be off. Plus you have data limits (I'm thinking of max interactions per minute that you can send), so your insertion process might be not very efficient. It would probably be better to create something on top of the measuremnt protocol that allows your clients to send data in realtime.
1 To make this a little clearer, you can set up 50 entities whith different access permissions. Of course every view can have as many users a you like, but they will all see the same data.

Getting UserID details into Google Analytics

I'm trying to get the Google UserID working so that I can identify certain users journeys through my website.
I've enabled the USER ID feature as per the docs, which created a new view named Users in my Analytics account. There's data in there, but I can't see to separate it. It looks like a standard account.
How do I spilt data by the user ID I've given them?
You don't. Userid is not displayed. It is used to stitch user sessions together when users come from multiple devices, it does not identify individual users in the interface.
If you want to do that you have to use a custom dimension and store an identifier per user there.

Google Analytics: Profile Workaround

I currently have more than 50 microsites on my main websites. That is I have one main top level domain and I have more than 50 microsites (and growing) in subfolders on that domain.
Previously I used separate GA web properties for the separate microsites (different GA tracking ID's), which worked fine and I was able to track each sites' activity well. However, I talked to a GA staffer over email and he told me I should switch to using a singular GA web property and use multiple profiles to segment the data by subfolder/microsite. That seemed logical for a lot of reasons, tracking users over the entirety of the website in one GA session being the main one.
Anyway, I have one subfolder which houses an array of microsites, numbering almost 40 right now. I don't necessarily need to have a profile for each one of these sites but there are a couple of important ones that I need to report on individually and on a regular basis I'd like to see how traffic to the other individual sites are doing.
So my question: Is there a way in a single profile to segment data to 40+ (and growing) microsites and see month to month stats on each site? Is there a way I can load a profile dashboard with the stats (Visits/pageviews) from each microsite? Is segmenting the data even what I should be looking at? How would you, a more advanced GA user, tackle this problem?
Many thanks for your input!
jimdo (http://www.jimdo.com) offers a Google Analytics based statistics tool for their DIY website creator. They put hundreds of the (usually low traffic) sites in one profile, set a custom var with a unique ID per site and query the results via the Google API, segmented by site id (at least that is what one of their founders told during a web analytics conference a few months ago). Given that the solution works for a couple of million of client sites (their claim is to host 7 million websites for their clients) segmentation based on a unique site id seems a pretty solid idea.
Updated: As custom vars are deprecated with Universal Analytics you'd now use a custom dimension instead if a custom var. Apart from that the approach should still work.

In Google Analytics, is there any way to exclude traffic from a source, but only when the traffic uses a certain Service Provider?

I am trying to do some analysis in Google Analytics and discovered that there is a particular bot that is sending a ton of 'fake' traffic to my site. I'd like to exclude this traffic from the analysis. It comes from a certain source (the same one every time) and is always on 1 of 4 Service Providers. I have isolated the traffic with the following segment:
INCLUDE "Service Provider" Matches RegExp "W|X|Y|Z"
AND
INCLUDE "Source" Matches RegExp "nameOfSource.com"
^^That returns the exact traffic I would like to exclude. So one would assume that when I set the INCLUDEs to EXCLUDEs it would give me what I need (everything except that segment). Instead, it excludes all traffic from nameOfSource.com.
Does anyone have an idea of how I could successfully exclude that traffic, without removing the legitimate traffic from nameOfSource.com as well?
Thanks in Advanced!
Google Analytics has filters for this purpose.
First of all create another profile so you have 2 profiles an unfiltered profile with all your data and create a a second profile and on that profile add the filters you want.
You can find this under the admin section in your GA account.
AND statements in Advanced Segment are not cumulative but they are not cumulative but they run one after the other.
You can do it with Advanced filter.
on field A extract "nameOfSource.com" from source
on field B extract "W|X|Y|Z" from ISP
output A+B to a custom var
Then you can use a second filter to exclude trafic with this custom var, or use an Advanced segment on it.

Resources