Import custom data to GA, custom dimension data not shown - google-analytics

I imported csv data to GA by custom Dataset:
Dataset config
And this is the data imported:
ga:browser,ga:dimension1,ga:dimension2,ga:dimension3
Mobile Safari,/app/tabs/products/4571136832125,13.1,27.91.141.47
Chrome Mobile,/tutorial,67.0.3396.87,49.96.37.242
Mobile Safari,/app/tabs/shop/flyers/00116560001,12.1,101.140.190.73
Mobile Safari,/app/tabs/products/search/freeword/list,13.1,113.148.129.44
Chrome Mobile,/app/tabs/account,80.0.3987.117,153.137.184.38
Mobile Safari,/app/tabs/products/search/freeword/list,13.1,114.148.42.25
Mobile Safari,/app/tabs/shop/flyers/00116560101,13.1,116.81.5.167
And I created a custom report
But just browser metric shown
while custom dimensions data not displayed

The idea behind Custom Data import is to enable extending GA data with your own columns. For instance, you might set some custom labels to a combination of Browser and Operating System. To do that in your import columns for Browser and Operating System have match existing data.
In your case there are two issues:
values for ga:browser doesn't match existing reporting values.
there are multiple rows for browser despite browser set as a key field for import.
Consider looking carefully through the example provided in the docs

Related

Split Out GoogleTag Manager Label Variables

I have created a tag within GTM which as part of it's label returns various variables; page path, and various ID's
GT Tag Configuration
As expected, when I view the events in Google Analytics, the label is one item.
Event Action in GA
Ideally I would like them to be separate, so that reports in Analytics can be pivoted on these variables.
Is this possible?
Not as such, but you can create hit-level scoped Custom Dimensions and send them along with your event.
Custom dimensions are basically custom data fields that you can fill with arbitrary data (as long as each value is 150 byte or less). You can use them as secondary dimensions in standard reports, or in custom reports in GA (or in Google Data Studio).
Custom Dimensions will only work after you have configured them. If you need to work with existing data, you could use Google Data Studio, which directly connects to GA, and create calculated fields e.g. by splitting the value by the whitespace character and return the first (second, etc) bit. Data Studio is free, and is for the most part a much more capable reporting interface than GA itself, so it's worth a look.
No, it is not possible. You have to export data and process them for example in Excel.

How to merge two custom reports in different properties together in Google Analytics

I have two different properties, one property is for historical data (e.g. from 01/01/2016 - 09/25/2016), while another one includes data from 09/26/2016-present. I want to create a custom report, which includes the data from 01/01/2016 - present.
I have tried to use Views option -> 2 views selected when I am building the custom report. However, it creates one view in each property, which has data for separate date ranges. Is it possible to merge these two views in different properties together to get data from 01/01/2016 - present?
In GA UI its not Possible, but there is good workaround.
Using GA API via Google Sheets aka Google Analytics automation script
You can use the Google Analytics API and Google Apps Script to access your Google Analytics data from Google Sheets. This is powerful because it allows you to utilize all the great features of Google Sheets with your analytics data, such as easy sharing, collaboration, charting and visualization tools. (Study here)
Create a sheet, pull data from property 1.
In sheet 2 pull data from property 2.
Merge the data in Sheet 3.
Fairly easy and manageable.
Big Query
If you have access to Big Query account for each property, then just write a query taking data from two different data sets for the desired range using TABLE_DATE_RANGE. (Study Here)

Import customer reporting schedule into Google Analytics

The company I work for has a custom reporting schedule, similar to the month specific groups four or more weeks are grouped into 'periods'. I have a mapping from date to period that I wish to upload to Google Analytics using its data import function.
When I get to selecting the schema on the data import tool there is no option to select the date as the key to join my data on.
Is this possible in Google Analytics? What is the correct method?
No, this is for the most part not possible; imported data is applied to incoming data but not to data that has already been collected, and then it is applied to all hits, not to a specific timeframe. Also you cannot create new interactions, you can only amend or change interaction data as it is being collected.
Google Analytics Premium (now 360) accounts have a feature called query time imports where imported data is applied to existing data in GA. This still does not allow you to selected a date as key, but if you have created a custom dimension and stored a date in there you should be able to make this work (since you can select a custom dimension as key field); however if have not actually tested this, so this is an educated guess.
But for the most part no, this does not work in GA and there is no correct method for your use case.

Is it possible to track actual affiliate sales in Google analytics

I have a website that I built and am getting sales everyday now via "affiliate window" I was curious if it was possible to track the commission in analytics so I am able to see what pages are performing the best?
Thanks
You should look into purpose-built affiliate trackers. Voluum, Thrive, Adsbridge etc. CharlesNgo.com has a lot of info about these.
You can also use these trackers to dynamically insert user data into your landing pages, and they are a lot easier than GA to use. Example: https://charlesngo.com/how-to-insert-user-data-into-landing-pages-using-voluum-tokens/
After a clarifying comment: Yes, you can do this, although with some caveats (one of them that it might not be worth the effort unless you make a lot from your affiliate pages).
You can do data imports, and more specifically you can add data to urls (there are different kinds of data import and "content data" is one of them).
You need a dataset that contains a "key" field that is used to match external data to GA data and one or more fields with values you want to import.
Imported data is always dimensions, i.e. categorical data (that is per Documentation The interface allow to to select custom metrics, but I have not yet tried this and cannot give any guidance on how that would work). So if you try to import revenue you have the problem that new entries will not be added to existing entries, they will replace them
What I would probably do is to sort the data from the "affiliate window" into three categories (low, medium, high), and then prepare a csv file with the urls as first column and the categories as second column.
Then create a custom dimension with a name of i.e. "performance" (else you'd have to overwrite an existing dimension in GA and you probably not want that).
Both custom dimensions and data imports are created on a property level (however you can apply an import to a specific view and I would urge you to test this on a test view first). So in the property settings go to data import, new, content data. Key will be "page", Imported data will be the custom dimension you just created. Check "overwrite hit data" (else the data will not change after the first import, however note that this might make comparisons between different timeframes difficult).
Download the "schema" file (simply a template for your csv upload file in which you insert your data). Click finish.
Next go to data imports, "manage uploads" and upload the file. Processing will take a day or so (errors, if any, you will see shortly after the upload).
Then go to your content reports, select your custom dimension as secondary dimension and you will if the url in question was a low, medium or high performer.
You can automate this via the GA API, bit that's a bit beyond an SO answer.
---- (old answer)---
This is actually what campaign parameters are for. Your affiliate links should be tagged with campaign parameters, e.g.
http://example.com/?utm_medium=affiliate&utm_source=[[Affliate
Name]]&utm_campaign=[[Campaign Name]]
The things in the angled brackets are placeholders, you would replace those with the name of your affiliate and the name of your campaign.
Now you can look into the aquisition reports and group by source (values for all affiliate links), by source (breakdown by affiliate name) or campaigns, or combinations thereof.
However tracking the commission you pay out via Google Analytics is probably not a good idea, at least from the point of view of your affiliates - JavaScript based tracking is not necessarily accurate enough to track billable services (some people have js disabled or opted out of GA or use adblockers that block tracking etc).
Yes it's possible. You can use sub-id's and fill them with unique visitor data (Google Analytics Used ID). Once an affiliate sale is tracked in an affiliate network, you'll get the sub-id that generated the sale. You can now push that sale to google analytics and let google analytics match the visitor data with their data, showing you the full visitor reports (including landingpage info etc.). You need developer skills to get this working with your affiliate networks but there are complete easy to use tools that does the trick for you such as Ivanhoe.io and Coincrack.

Is it possible to import external sales into analytics

I'm looking to import a csv which would contain:
1. The date a client signed up
2. Where they heard of us (online/facebook/storefront etc)
3. Their location
4. And if they became a sale are pending or not (y/n/na)
Given that type of data is this feasible to do. I've been attempting to do this in a variety of ways, mainly importing the data (though the ga import button) to custom dimensions. However after creating custom dimensions for each I am failing to see the data in any shape or form. I've created a custom report attempting to view these custom dimensions but it fails to show me anything after a couple days (I am aware of the 24hr potential processing timeframe).
Any help would be appreciated!
You could start by quickly setting up a Dashboard with Table widgets for each of these Custom Dimensions, with say, their associated number of Pageviews and/or Sessions. This would help you be sure whether or not data is correctly being recorded.
If that does not provide any positive result, make sure that the data you imported respects the format expected by the Data Import tool.
For details about the format, Google Analytics recently updated their documentation with file samples: https://support.google.com/analytics/answer/4524584?hl=en&ref_topic=6015090

Resources