We are configuring our analytics account with ecommerce datas, but it seems that we have an issue.
When a client is making a transaction, we iterate through all items in the cart and add them to analytics with addItem function but we noticed that when the price of an item is equal to zero, it is not collected in Analytics and so we can't have analytics on it.
Is it normal that this product is not showing on analytics ?
Do we have to force a price to 0.01 for example ?
Thanks for your answers.
Related
Does the time get stored with the date OOTB with the Google Analytics 4 (GA4) on eCommerce events?
On my company’s implementation when I look at the data stored to e-commerce events, like the purchase dimension, everything is showing as occurring at 12am. Do you know why this is? Is it a config issue or the way I am connecting?
I’ve seen posts where people create JavaScript variables to track time in GA4 and save to a dimension but this makes no sense given the high cardinality of time. I would have thought it would be more efficient to store as a datetime data type and track as part of the GA4 application.
Does anyone here see the time an event occurred on GA4 eCommerce events?
There is a currency field under property set up in Google Analytics. What purpose does it serves? The reporting time zone perhaps shows the website visits and other stats based on that specific time zone but what role does the currency field plays.
GA does not only track hits, sessions and users. It also tracks so-called E-commerce events. When something is added to cart, removed from it, various checkout steps, purchases, refunds and many more. To measure them more precisely, GA offers to track a few monetary metrics that are measured in currency.
That currency will be mostly used in e-commerce reports. You can read more on it here: https://support.google.com/analytics/answer/6205902?hl=en#zippy=%2Cin-this-article
Background
I am currently using Google Tag Manager to populate the Sales amount into a Custom Metric in Google Analytics. This is the code I use to push Sales amount to Google Analytics.
ga('set', 'metric2', {{salesvalue}});
Other information
My custom metric set up in Google Analytics: https://i.imgur.com/kX3aUto.png
I know that the metric is firing with the correct values since it is showing up in GA Debugger: https://i.imgur.com/lGIxCw1.png
Error
Despite the above, I do not see any information in Google Analytics: https://i.imgur.com/WtxChgY.png
Questions
Is there anything wrong with my setup? I have waited over 3 days but still no data.
By using ga('set') does it mean that if a user makes 2 separate purchases in the same session, only the latest sales figure will be reflected instead of the total of the 2 purchases?
Thank you
In your GA Debugger console, the metric2 parameter should be appearing within the pageview send data (along with all the other data being sent to GA at that time). If it is not there, you could be running into a race condition or some other technical issue. If it is there, then you'll know that it is definitely being sent to Google Analytics and something else is wrong. It should not take long to appear, and if you see any rows of data (as you did with your screenshot) the metric data would be there at that time.
Regarding your 2nd question, custom dimensions have scopes that are configured when you create them, but custom metrics simply add up. If I had a custom metric of "clicks on a button" and user clicked it 3 times in their session, the custom metric would be 3. Likewise, if your custom metric is listening for sales value, it will add up to the total value in that session.
Hope that helps at least get you some more clues as to what is wrong.
I would like to create a Report in Google Sheets using the Google Analytics API - more precisely, to import the data in Ecommerce Shopping Behavior Analysis.
Specifically, the following data appears unavailable as a metric / dimension:
- No Cart Addition
- Sessions with Add to Cart
- Cart Abandonment
- Sessions with Check-Out
- Check-Out Abandonment
I also noticed that Product Add to Carts and Quantity Add to Cart (in metrics) does not present the data as unique - i.e. unique Add to Carts within a session but rather the total Add to Carts for a given dimension.
Brief, how can I access information available in Ecommerce Shopping Behaviour Data in GA via a Google Analytics API / Report in Google Sheets.
Here is the list of dimensions and metrics available in the core reporting API.
Unfortunately, you cannot fetch cart abandonment data as is, because there are no dimensions and metrics about it and the API doesn't expose the various e-commerce checkout steps (it's something calculated internally by GA, but not exposed via the API).
Your options:
Cart Abandonment Segment: you can create a segment (UI, API) which conditions reflect that of an abandoned cart. For instance people who added something to their cart but ended up not buying (ga:productAddsToCart>0 AND ga:transactionRevenue=0) and apply that segment to your API requests so all the data you pull is related to abandonments.
Goal Abandonment metric: you can configure an additional funnel goal with each step matching a page of your funnel (if you have a one-page checkout, you will need to setup virtual pageviews you can use in your funnel), and use the ga:goalXXAbandonRate or ga:goalXXAbandons metrics to get the number of abandons.
https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce
Using the Google analytics Ecommerce tracking, is it possible, recommended to send Item and Transactions at different times?
Reason being, we do not actually know the revenue amount until a much later time.