Google Analytics Schema for Purchases - google-analytics

I'm not very familiar with Google Analytics. I'm trying to figure out what the schema would look like for an export that contains all purchases for any users that have visited my site. So to sum it up, I'm interested in understanding what the data structure will look like (column names) for an export from GA that contains all purchases on my site.
Thank you in advance for any insight you may have.

There is no export schema for Google Analytics as such, but the best source for this could be BigQuery Export Schema (BigQuery is included in the Premium/360 version of GA).
https://support.google.com/analytics/answer/3437719?hl=en
You will be able to access it even if you are not GA360 paying customer. The export schema is pretty solid, however keep in mind that there are some vital dimensions that are not available through API/GA interface by default.
Hope this helps.

Related

Get Real time Analytics Data

I want to get analytics data of each user of my website. I know that google analytics provide data user wise but I am not able to export that data using API. I want real time user wise data with export feature to save it in my database. I have gone through many platform like mouseflow but they do not provide data user wise. Is anyone have idea how can I implement this?
Thanks!
Here an example of how to get data from Google Real Time API (with Google Apps Script):
https://www.appsscript.it/tutorial/utilizzare-le-real-time-reporting-api-di-google-analytics-con-apps-script/

Define Analytics Goals in BigQuery

I am trying to get Analytics goal conversions and goal names with BigQuery, but it seems this must by defined by myself. How can I define this in BigQuery? Could someone provide me with a query example or guide?
Thanks a lot!!
The goals configured inside of Google Analytics are not stored in BigQuery and will need to be computed from scratch.
You will need to make a query based on the fact that the goal is generate it is, for example, by event or thank you page, so you need to recreate the calculation of the same according to how you have configured them in Google Analytics Admin section.

What does field `hits.publisher.adsRevenue` mean in GA to BigQuery export schema?

I have recently integrated GA with BigQuery and I was checking consistency of the data. I found most of the metrics in GA correctly matches to data aggregated in BigQuery. However I got stuck to following metrics which description is not even available in BigQuery Export Schema https://support.google.com/analytics/answer/3437719?hl=en.
hits.publisher.adsClicked
hits.publisher.adsRevenue etc.
I looked both GA and BigQuery metrics to guess the mapping of above listed fields but unfortunately I was not able to find any related metrics in GA.
These are fields for when you use Adsense or AdExchange to serve ads in a website. If you don't use any of these products I think they'll just be blank.

Can you export AWStats data to google Analytics?

I just started using google analytics and I wanted to import the exist analytics tool data into GA.
I see that GA has a submenu where one can import data, but i don´t seem to find any export menu in AWStats.
I asked my webmaster before bothering you, but he didn´t have an idea.
I checked the web and couldn't´t find export related topics.
in the attachment a screenshot of the submenus for AWStats.
Did anybody try this before ?
Thanks in advance.
GA data import cannot create hits, it can just amend already existing hits with additional data. So the answer is pretty much "no".
(You could pipe in new hit data via the measurement protocol, but you could not set a date/timestamp and there is a limited hit quota per second, so this would take a long time and you would lose the original time information on your hits, which would probably render the data useless).

How to remove an e-commerce transaction?

I have implemented google analytics ecommerce tracking in my website. But there was a mistake while passing parameters to google analytics. My order get tracked but product sku code is not set.
Its a dummy order that i dont want show in any google analytics report.
Can you suggest how can i delete this order from google analytics?
I am afraid you cannot remove data from GA once it has been collected.
What you can do is:
hide it: create an Advanced segment, the transaction remains in your GA profile but at least it is not included in the reports.
make a copy: copy the profile and delete the old one (it means you lose historical data)
There is one more option:
1.- You could create a new transaction with the same amount in money, but with a negative sign. For example, if you have recored a transaction for 1,000 dollars, you could recreate it with a "-1000.00" amount. Doing this would "cancell" the wrong transaction.
Important: This will only work when the user sees a long period of time, including the wrong transaction and the fix.
Julien is right. You cannot remove the data.
There're a couple more options in addition to Julien's suggestions though
You can go to "Filters" option of the view and try to see if you can filter it out. Luckily, ecommerce transactions have their own category that can help you narrow down the variable you need to use. (screenshot attached)
Go a little more advanced than filters and use "Data Import" where you import the ecommerce transactions via a spreadsheet thereby overwriting the transactions for that day. So, what you would essentially do is take all the real transactions of ecommerce from your ecommerce application, export them to CSV and then upload it into GA without the test transaction.
Lastly, a tip: create a test profile for things like this.
One of the answers hinted at data imports (but in a way that would probably not have worked). Universal Analytics actually introduced a way to refund transactions (effectively canceling them out) via data imports. However this only works if the data was collected via enhanced e-commerce tracking. As per documentation:
In order to process refunds you need to have collected transaction
data with the ec.js plugin
With standard e-commcerce-tracking Omar Gonzales' answer is still the only working option (I'd like to add the additonal caveat that the negative transaction might be attributed to the wrong channel, so make sure to look at the source/medium/campaign data for the transaction you want to cancel out and supply that data via utm parameters).

Resources