I need to import cost data from non Google marketing campaign, so I'm trying to add a new Data Import (type Cost Data) in Google Analytics
but in the next step I have not any views to select.
Make sure that you have the Edit-level permission for the view you want to use, and that you have views set up in Google Analytics.
Related
Google Analytics (particularly version 4, "GA4") has various predefined events, each with its own parameters. E.g. the purchase event has an items parameter, which contains data such as item_id and item_name for each purchased item. JS code on a website can send these events and pass the extra data, and I can actually see the data in the "Analysis hub" in the Google Analytics interface.
Is there a way to also fetch this extra data using the Google Analytics Data API? There is a way to retrieve some predefined dimensions and also "custom dimensions" (via customEvent:parameter_name), but e.g. purchase item data doesn't seem to be a part of that.
Do I have to define custom dimensions (e.g. a purchasedProductId) and send them in addition to the items parameter, if I want to access this data via API?
Jan,
Ecommerce reporting is not yet supported in the Google Analytics Data API. I will update this question once I have more information about the timeline of this feature implementation.
Thanks,
Ilya
The Google Analytics Team
I run a blog and publish AWIN affiliate campaigns on my website.
The Awin affiliate network offers a transaction feed that automatically push near transaction notifications to a URL I am able to define.
Detailed infos: https://wiki.awin.com/index.php/Transaction_Notification
I wonder if there is a way for me to push/import this data from Awin directly into my Google Analytics account and if so how?
Yes, this feature is called Data Import. What you will need is to choose a dimension (called the import key) with which you can blend GA and AWIN data. Practically, what you might need to do is:
Implement a custom dimension as your import key so you can store an affiliate identifier from AWIN against your users in GA, this will be your blending dimension.
Create other custom dimensions/metrics as needed to hold the other data points from AWIN
Create and import data sets on a regular basis to import new AWIN data
Please note that a few weeks ago Google Data Studio now has a feature to blend data sets, so once step 1 is done, you could perform steps 2 and 3 in data studio (which might be easier for you as you don't need to create the extra dimensions/metrics AND you could have your AWIN data in a Google Sheet synced automatically with your GDS report, thus saving you the data imports).
What can be the reason the user_id is null in BigQuery? Data from Analytics is sent to BigQuery but the user_id is not passed along. The user_id is sent to Google Analytics but what could be the reason it is not available in BigQuery?
Confirmed by Google Analytics 360 support, the userId only have non-null values in BigQuery tables that are exported from User-ID enabled views in Google Analytics. For non-User-ID views, you only see null values for the userIdcolumn and you have to use a custom dimension to capture User Ids and query them in BigQuery.
In order to check which Google Analytics view you have linked to BigQuery, you can either look at the dataset ID in BigQuery (which is the same as the Analytics View ID) or directly the linked Google Analytics view in Admin > All Products [Property column] > BigQuery in the Google Analytics UI.
I am operating under the assumption that this field is intentionally held out from all Google Analytics -> BigQuery extracts based on the following:
https://support.google.com/analytics/answer/6205850?hl=en#limits
Of particular note, the line "The User ID value can not be queried as a dimension in reports in either the web interface or the APIs". I take this to mean that it will never leave the confines of Google Analytics, including to BigQuery.
I have not been able to get anything but null in my tables either.
Sorry I do not have better news for you!
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.
Is it possible in the dashboard to report a value which is a custom calculation between fields?
I have an event called "banner_impression" and another one called "banner_click"
I would like to calculate which is the percentage of "banner_click" events over "banner_impression" events.
Any way to report such calculated value in a dashboard?
Nope. Sadly calculated metrics are not a feature in any version of Google Analytics. I hear Adobe Analytics has it, but that's an enterprise-level paid solution.
You'll have to export the data out of Google Analytics, open it in Excel, and then divide your clicks by your impressions to include it in any sort of dashboard. Excel plugins are available that can help with this, and they include Analytics Edge, Next Analytics, and the Napkyn Reporting Manger.
There are also dashboarding applications like Klipfolio and Mixpanel that can allow you to suck in data from various sources (incl. Google Analytics) and present your data in a much more appealing way.