Google Analytics Enhanced E-Commerce - google-analytics

in our webshop we are currently using the enhanced ecommerce object.
Atm the attribute price is used, but we are selling services.
So we made a second attribute lets name it completePrice , which is the price multiplied by the times the customer has to pay in this specific contract.
How can we use this second attribute as the price used in Google Analytics E-Commerce?

Related

What is the purpose of currency field under property set up in Google Analytics

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

Retrieve Google Analytics 4 event parameters via API

Google Analytics (particularly version 4, "GA4") has various predefined events, each with its own parameters. E.g. the purchase event has an items parameter, which contains data such as item_id and item_name for each purchased item. JS code on a website can send these events and pass the extra data, and I can actually see the data in the "Analysis hub" in the Google Analytics interface.
Is there a way to also fetch this extra data using the Google Analytics Data API? There is a way to retrieve some predefined dimensions and also "custom dimensions" (via customEvent:parameter_name), but e.g. purchase item data doesn't seem to be a part of that.
Do I have to define custom dimensions (e.g. a purchasedProductId) and send them in addition to the items parameter, if I want to access this data via API?
Jan,
Ecommerce reporting is not yet supported in the Google Analytics Data API. I will update this question once I have more information about the timeline of this feature implementation.
Thanks,
Ilya
The Google Analytics Team

Can enhanced ecommerce variables be used to send non-enhanced ecommerce events? How do I determine that?

I am using the data layer inspector to look at events being fired from an e-commerce website. I have an event which I don't think is an enhanced e-commerce one but it is using enhanced e-commerce variables. How do I know if this is being pushed through to Google Analytics or not (no access to the tool evidently)? Which parameter on the code will tell me if this is an enhanced e-commerce event or not?
I am not giving details from the website:
The event category is "stock".
pa: "detail",
I see the basic product index variables such as ID, name, brand category.
I also see custom product index dimensions being sent.
I want to understand when I can use product index dimensions and when I cannot and I want to understand what are the enhanced ecommerce events.
There is no special parameter in the requests that says standard/enhanced e-commerce. Rather a) your view must be configured for Standard- or Enhanced E-Commerce, and b) the structure of your request must match the view configuration.
I want to understand when I can use product index dimensions and when
I cannot
Simple, product scope dimensions are available only in EEC.
and I want to understand what are the enhanced ecommerce events
product impressions (usually as part of some sort if product list)
clicks in product lists (together with impression tracking this will give you click-through rates for viewed products)
product details
add/remove from cart
checkout (with a number of configurable steps, e.g. "enter billing/shipping address", "select payment" or similar - the name and number of the steps is configurable and is displayed as a funnel in the GA interface)
purchase
refund (more often done via imports in the GA backend than in code)
You can also measure internal promotions (e.g. if you have a banner that links to special offers in your site).
Ivj's answer already gave the links to the documentation where the steps are explained in detail.
Standard E-Commcerce has only transaction tracking and no other E-Commerce events.

How to import GA Ecommerce Shopping Behavior Analysis Data?

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.

What is a 'product' in Google Analytics?

In plain English, what is a 'product' in Google Analytics?
I ask because I'm trying to work out which Custom Metrics to set to Scope:Hit and which to set to Scope:Product. I assume a "hit" is just like the website hits we used to talk about in the 90s. But Google's explanation only makes sense if you also know what they mean by "product".
When a custom dimension has product-level scope, the value is only
applied to the product with which the value is set. Because multiple
products can be sent in a single hit, multiple product-level scoped
custom dimensions can be sent in a single hit.
As far as I know product data only exists with the new enhanced e-commerce-features** and is identified by one of the (unique) fields "id" or "name". There a several optional fields to add product details (see documentation).
The difference between "normal" and enhaced e-commerce tracking is that previously product data was recorded only on the confirmation pages, now you can do stuff like tracking a shopping basket or product lists (plus you need a different tracking library and a different syntax).
** At least all examples I found refered to enhanced ecommerce tracking and the classic e-commerce tracking does not have an "id" field. However the documentation does not explicitly say that product scope does not work with classic ecommerce, that's just an educated guess if mine.

Resources