I have problem with integration our crm system with google analitycs. We want to use offline revenue tracking. We use google tag manager. I setup new Ecommerce tag, and as i see - it works fine. After that I created new data in admin panel with this options
My example csv file:
ga:transactionId,ga:productSku,ga:transactionRevenue,ga:quantityRefunded
1433493048,a1d7311f2a312426d710e1c617fcbc8c,28000,1
1433494861,a1d7311f2a312426d710e1c617fcbc8c,29000,1
1433500564,a1d7311f2a312426d710e1c617fcbc8c,30000,1
1433501589,b440509a0106086a67bc2ea9df0a1dab,31000,1
1433505297,405e28906322882c5be9b4b27f4c35fd,32000,1
I uploaded file, and status is "Completed". No errors and no alerts.
But in Reporting panel data not updated.
Refund data upload is for, well, refunding.
One guess is that Google Analytics does not want to refund more money than people have actually paid. If you want to import transactions I suggest you use the measurement protocol to send transaction data.
Also your example csv is wrong: the third field is supposed to be the product price, not transaction revenue (so look into the individual transactions to see if the number has been recorded as product price. Analytics does not automatically sum up product prices in a transaction as transaction revenue, you have to pass that in yourself).
Related
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).
I have set up the Google analytics API on Google sheets for reporting purposes, however have had some issues in capturing transaction and revenue data, when filtering.
The API pulls in revenue and transaction data fine for me when not filtering, however I've used the below filter, because this is how our website splits out our white labels, with each white label having a different affiliate id.
ga:pagePath=#/?affiliate_id=default
This pulls through the filtered session data through fine, but does not pull through transaction or revenue data.
When using Google Analytics rather than the GA API in Google sheets, the same filter works fine, and shows the transaction and Revenue data. However through the API in Google Sheets the above filter shows the transactions and revenue as 0.
Does anybody know what I've done wrong here, and what the correct code would be to enter in the filter box in Google sheets so I can pull in the transaction and revenue data?
My technical knowledge is very limited here so appreciate the help.
Many thanks!
Rob
You may want to try the queries given in Core Reporting API - Common Queries.
Like, for Revenue Generating Campaigns, to get campaign and site usage data for campaigns that led to more than one purchase through your site, you may use this query:
dimensions=ga:source,ga:medium
metrics=ga:sessions,ga:pageviews,ga:sessionDuration,ga:bounces
segment=dynamic::ga:transactions>1
And to get information on revenue generated through the site for the given time span, sorted by sessions in descending order, you may use the sample query in All Traffic Sources - E-Commerce:
dimensions=ga:source,ga:medium
metrics=ga:sessions,ga:transactionRevenue,ga:transactions,ga:uniquePurchases
sort=-ga:sessions
I also suggest that you try and explore using Query Explorer.
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.
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).
My company is attempting to send scheduled custom referral traffic reports to some of our affiliates and we would very much like to hide/remove the "% of total" values that are appended below visits and transactions so that our affiliates don't have to know what our total site visits and transactions are.
The totals aren't included in the Excel versions of the reports, but we want to use PDFs.
At the top of your Google Analytics page you will find Customization you can create a custom report for this.
Under type: pick Flat table it wont display totals.
If you click on the link below you should be able to import the dummy report into your Google Analytics and see what I have done. If you try and save this report as PDF you wont see Totals. This is a simple example just using Referral path and visits. You can add filters to it as well so that you are only sending the information you want to the different affiliates.
https://www.google.com/analytics/web/template?uid=z27OTlCjTvqsarRmJpFc4g