new here and looking for help.
I'm trying to get the amount people are spending on a products for a website in local currency.
I'm looking at a GA page for someone overseas and the currency values from itemRevenue for each productName I'm seeing in my report in Sheets are not looking like they're local to that store but rather my countries currency. I've tried localItemRevenue but that gave an error saying the dimensions and metrics can't be used together. I've got date/hour included as well in the report.
I tried to use itemRevenue with currencyCode to get around this but they couldn't be used together either.
I thought I could use transactionRevenue along with productName/date/hour/minute but that didn't work (I realised because more than one item can be bought per transaction).
Could someone tell me what GoogleAnalytics uses for currency here and if it can be solved easily?
Google Analytics uses the currency settings that are set in the data view settings.
If you send a different currency, as specified by the currency field in the e-commerce-tracking, GA will convert it to the currency set in the view settings as long as it is on the list of supported currencies.
So the first thing to do would be to check the view settings - this defaults to USD, and it happens amazingly often that people fail to set the proper currency.
Next thing to check would be to see what is actually sent to the property - if there is a mismatch between view currency and currency set in the code the values will be converted from the latter to the former.
Your question is not quite clear to me.
However I am assuming that you want to set local currency of your client's country in Google Analytics account.
You can change your currency:
1) Login to your Google Analytics Account
2) Select the View & Click on View Settings.
3) Set "Currency displayed as" -> currency of your choice.
Unless and until you set your desired currency here, you won't be able to get it in Web Interface, Query Explorer, Sheets or API.
I hope this helps.
Related
I have our E-commerce Conversion Rate all set up and looking good in GA. I want to view the conversion rate of people who have viewed a specific page and add this information to a Datastudio report...
I have the metric in Datastudio as "E-commerce Conversion Rate" everything looks good and the data matches GA, however, I tried filtering based on the dimension "page" contains "/pageurl" but I don't get a valid result... What am I doing wrong?
Like I said I just want to see the conversion rate of users who have visited a certain page during their journey...
Thanks in advance!
I believe your issue is that the e-commerce conversion rate is not a pageview-level metric. So, when you try to add on a filter to contain users that went to a certain page, it won't work correctly.
It's like if you try to go into the All pages report in GA, you'll notice there is only a page value metric but no conversion rate.
You have two options depending on the report you are trying to make. You can change the filter to be landing page rather than just page or you can create a custom segment in GA that is a session containing a view of the particular page you are looking for.
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.
I am having issues with Measurement Protocol. According to docs I should send "cu" - CurrencyCode to set a currency. I am not getting that currency in my analitics view. It is showed in USD.
My sample hit
v=1&t=pageview&tid=UA-105189848-1&cid=555&ds=&z=&dh=lechtest.roboticket.com&dp=%2FTransaction2&dt=Transaction&pr1id=3923915&pr1nm=Lech%20Pozna%C5%84%20-%20Wis%C5%82a%20Krak%C3%B3w&pr1ca=ticket&pr1br=&pr1va=Darmowy&pr1ps=&pr1pr=0&pr2id=3923914&pr2nm=Lech%20Pozna%C5%84%20-%20Wis%C5%82a%20Krak%C3%B3w&pr2ca=ticket&pr2br=&pr2va=Darmowy&pr2ps=&pr2pr=0&pr3id=3923913&pr3nm=Lech%20Pozna%C5%84%20-%20Wis%C5%82a%20Krak%C3%B3w&pr3ca=ticket&pr3br=&pr3va=Darmowy&pr3ps=&pr3pr=0&ti=4724692&ta=roboticket&tr=0&tt=&ts=0&tcc=&pa=purchase&cu=PLN
I tested that with google hit builder and it looked okay, parameter was even linked to docs.
Docs refference
Any clue what I am doing wrong? I'd appreciate any help with that currency issue.
Any clue what I am doing wrong?
Yes, you misunderstand what that parameter does. Your views shows values in the currency that is selected in the view settings. If you send a currency designator that's different from the selected currency (and it is one of the supported currencies) then GA will convert your amounts from that currency to the currency set in the view. That's a feature to support shops that support multiple currencies.
I've just finished tagging a website, and currently submitting test data.
On one page we fire an Ecommerce purchase event, which consists off the transaction information / product information.
The transaction object is populated by retrieving values off the page i.e from html labels this is all working as expected, however when we check Google Analytics > All Web Site Data it seems GA is formatting the number and removing trailing zeros for some strange reason, please see an example:
This doesn't happen to all purchase events, as you can see at the top of the table there is an entry for $1,793.04 and this has been displayed correctly.
In regards to populating the transaction object, we aren't doing any formatting what so ever we simply reference the html label value and pass that, so I'm unsure into how this could be happening. Has anyone experienced this before?
Personally I have not found this anywhere else documented but just to be sure you can conform with the formatting expected by the Measurement Protocol. Meaning the http request that will be ultimately sent to GA servers to process your values. The transactionRevenue and most monetary values in analytics.js are of type CURRENCY and you can find the documentation of these data type in the parameter reference. And from the link I quote
A decimal point is used as a delimiter between the whole and
fractional portion of the currency.
So the thing that I would advise you to do is use some js function to format your string values. Remove the comma and then use the (.) as a separator for whole and fractional point.
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.