Track individual via Google Analytics - google-analytics

I am new to Google Analytics. I have a conversion set up, and I'd like to capture demographics for individuals who convert at e individual level. When a user converts, I'd like to pass the statistics from Google Analytics into my own database, or keep a record of the ID assigned at conversion in Google Analytics and download the data. Is this possible? I want to do analysis on who is likely to convert versus not - age, shopping habits, etc - and link these details back to the type of specific conversion.
Thoughts?

We if want to add add track users at individual level, try creating a Custom diamension and passing the userID everytime you make a GA call.
Next to view the same :- in tables that you view your analytics data, there will be this option called 'Secondary diamention', from the list that appears.. Choose the custom diamension name that you had assigned. Now you will be able to see each row with the userID along slide.

Add user ID to your tracking script
The first step to your question is to add the user ID to your tracking. If you have some way to identify users on your website (ie: through email marketing tool, your CRM, etc), then you should set up user ID tracking. Here is the Google Dev article about that:
https://developers.google.com/analytics/devguides/collection/analyticsjs/cookies-user-id?hl=en
However, basically... you just have to add this to your tracking script (replacing the 'create' line you currently have, replacing "USER_ID" with the user ID your system gives them.
ga('create', 'UA-XXXXX-Y', { 'userId': USER_ID });
In addition, I usually include this UserID as a custom dimension, so that I can view it in Google Analytics and other reports. To do this, first set up a custom dimension for your ID, as a "User-level" dimension. Then just add this after your user ID is available (assuming this is your first custom dimension):
ga('set', 'dimension1', USER_ID);
Connect User ID to Demographics
Unfortunately, the demographics information that Google Analytics provides (under "Audience") is not compatible with custom dimensions (like userID). So, the API only allows you to pull the audience data in aggregate (ie: connected to City, number of users, pageviews of those types of people... etc). If this works for you, check out the GA Query Explorer (below) to try out different combinations of dimensions & metrics to drill down as deep as you can and maximize the information you gain from this demographic info.
Connect Google Analytics Data to Your Database
In order to connect GA data to your database in an automated fashion, you will need to set up some kind of scheduled process that runs a query off of the Google Analytics API. To explore what combinations of metrics and stuff are available, I'd suggest checking out the Google Analytics API Explorer and the Google Analytics API reference material. What I did was set up an SSIS package (using SSIS GoogleAnalyticsSource) as the data source, which made it fairly easy. Then just scheduled that to run daily, populating the data I want into my database.
Alternatively, you could download less complicated reports directly from Google Analytics and import them into your database with something like SQL Server Management Studio.

Related

How to get user information for specific events in Google Analytics?

We have set up Google Analytics on Requestly Pricing Page. We are already getting site-related information, anonymous statistics, events from the page like
Pricing Page viewed
Coupon Applied Successfully
Duration Changed to Monthly
Premium plan bought
.. so on ..
However, Now we want to track the users who are performing a specific event like
Pricing Page Viewed
but did not purchase premium plan So that we can send targetted emails to those users. If we can get the user IDs (non PII data) from Google Analytics for a particular event, we can map them from our CRM system and get their emails and send them an email.
So, How can we get the list of users associated with some event?
If you are sending the information to Google Analytics as a custom dimension, simply add the second dimension in the Event report.
If you are sending the userId with its defined parameter you have to enable User-ID in your Property and create a User-ID view to see the data in your Analytics reports: https://support.google.com/analytics/answer/3123666?hl=en
Yes we have started sending User Ids to Analytics and now we are able to see User performing events in User explorer but I would like a reverse way. Given an event I want to know which users performed that event.
User ID in Google Analytics
There are three ways to import the User ID in Google Analytics:
customizing the schema field userId
setting up a custom dimension which contains the value
both of the above
In case 1, you can access the data via Google Analytics in User Explorer report, setting up a User ID View.
In case 2, you can access the data in each report that allows to define a secondary dimension.
In both cases, you can access the data in Google BigQuery, if you set up the export.
About your specific need
To know which users performed a specific event I suggest you to create a custom report in which you specify the event in the filters and you set your User ID custom dimension as dimension. This approach of course assumes that you import the User ID at least as a custom dimension.

Sending event values to Google Analytics using Zapier

I'm using Close.io as a CRM, I want to be able to create an event on Google Analytics and record the conversion value. The purpose of this is so that I can tie a certain Google Ad to its performance. On Close.io this would be a new Opportunity created. I'm using Zapier to integrate the two platforms and it has a new Beta integration with Google Analytics. I set it up so that when a new Opportunity is created, it creates a measurement on GA with the measurement type "Event Tracking", and the category, action and label similar to the goal I created on GA. However, when I send tests to GA, it's not appearing in my acquisitions report on GA.
There are fields for Customer Client ID and User ID.For customer ID there's a description that says: "This anonymously identifies a particular user, device, or browser instance. Google may ignore repeated identical measurements. The value of this field should be a random UUID (version 4) which you could generate using a Code Step. Defaults to a UUID shared by all Zapier users"
I'm thinking of capturing unique session ID on the form using javascript and filling these fields in to see if it works. Please help with thoughts and feedback. Thanks!

Download Google Analytics information with a unique user ID

I'm looking to download hit data from a Google Analytics view for a small period of time that includes unique ID for a session and URL that was viewed. I believe I could do this going forward by setting something in Google Tag Manager to a Custom Dimension, but I was looking to avoid that (we have a good number of custom dimensions) and because I wouldn't be able to go backward.
Is it possible in the free version of GA to do something like? I picture the output being the URLs in my x-axis and my users in the y-axix with counts.
I'll be looking to take this data and do a cluster analysis to determine user behavior types.
Nope. Google Analytics does not expose a user specific id via the API or via data exports in a standard account (in GA360 you could use BigQuery to extract the client id).
You either have to set up a custom dimension (as you said this does not work for historic data), or try and use calcuated fields in Google Data Studio in the hope that if you aggregate enough different dimensions into one field you will end up with something specific per user.

Getting google analytics data per user

I'm looking to get information about users sessions from google analytics. Things like:
date of visit
referral
device type
exit page
browser
time on site
etc.
However, Analytics API seems to only offer this data as totals, and not per user. So I can't know how much a specific user stayed on the website for example.
The final result I'm looking for is to tie this data from analytics with the user id from our CRM platform using the google UUID saved in cookie.
Is it possible to retrieve this data from Analytics or you can only access it with Analytics 360?
User level data is not available in standard GA (except in a limited fashion via the User Explorer report which cannot be exported). You'd need to store user id or client id in a custom dimension (you must not store personally identifiable data in GA, even in hashed form, so take care what you use as user id) and then select this as first dimension when you export the data. Obviously this does not help you with data that's already been collected.

How to track Registration form fields with Custom Variables in GA

I have a registration form with default fields and one drop down with 5 values say 1 - 5 And this field is mandetory.
How could i track this values thorugh Custom Variables for successful registered users?
What would be the other options if we cont track this through CV's?
Custom variables are pretty much a thing of the past - Universal Analytics has custom dimensions which are conceptually different and are not very well suited to store form input. Plus there is the danger that the form contains info that can be used to identify a person, and it's against Googles Terms of Service to store that in Google Analytics.
One possible way to solve this would be to create a Spreadsheet on Google Drive and publish it as a webapp to store the form data along with an anonymized ID per user; the same user id would be set as a session based custom dimension in Google Analytics. Using the Google Analytics Spreadsheet add-on or a bit of bespoke Google Apps Script you could then pull the relevant metrics per id into the spreadsheet to create your reports.

Resources