Ecommerce event parameters not showing on GA4 - google-analytics

First of all sorry, I am not a developer.
We implemented 7 dataLayers for ecommerce events. There are no errors on GTM and all the tags are firing normally. The events are showing in GA4, but the parameters don't.
Here are a few images:
Example of a tag
Example of the variable
Example of the tag firing
Example of another tag firing
No parameters on GA4
I followed this guide for implementing the events: https://www.optimizesmart.com/how-to-set-up-ecommerce-tracking-in-ga4-google-analytics-4/
The dataLayers were implemented by a developer (this part seems fine based on the GTM images above, no?)
I tried to turn on "Send ecommerce data" on the tags, but it didn't help. I understood that it's not really something necessary anyway.
Edit:
Items show in DebugView, but not under parameters
'Items' shows in DebugView

Related

Gaq push events not showing in GA4

We are using a custom tracking code to track events in UA, which was fine until now, but as there is a deadline to move all the events in GA4, I have already integrated the GA4 to the website, but I couldn't see those events there. Following is an example of an event I use.
_gaq.push(['_trackEvent', 'EventCategory', 'EventAction', 'EventLabel']);
Homepage=Category , PretSmallBanJan2023Stars = Event name , Banner= Event label
e.g. - _gaq.push(['_trackEvent', 'HomePage', 'PretSmallBanJan2023Stars-CH', 'Banner']);
There are over 15k events like this that are on the current setup which I have to move before July, so if there is any way to keep the same setup and see data in GA4 it will be greatly appreciated.
Kind Regards
You have to consider that in GA4 there are no more Category, Action and Label.
Follow This Link to move to GA4. Remember that there have been some major differences, as an example look at this Comparing metrics: Google Analytics 4 vs Universal Analytics.
In order to define a Custom Event in GA4 follow GA4 Custom Events
In order to define custom events you can use two methods:
1 - GTAG
2- DataLayer
I believe it would be easier if you use the first one or gtag.js API to send info or events to Google Analytic API. However, it is subjected to change(so you might be obligated to change something or update something on and off when Google decides).
1 - GTAG
As it is described in this link Set Up an Event for Website Apps for GTAG,
Before you begin:
Create a Google Analytics 4 account and property Create a web data
stream for your website Place the Google tag on your website It also
assumes that you have the following:
Access to your website source code The Editor role to the Google
Analytics account
To send events to Google Analytics this API has one function called gtag(), and whenever you want to send an event to Google Analytics, you use the following syntax:
gtag('event', '<event_name>', {
<event_parameters>
});
Finally, if you need the same metrics Category, Action and Label I suggest you to create Custom Dimensions for these three. So if you have an old-defined table in your Database, it is not going to change the fields or create loads to the developers. The documentation for creating Custom Dimensions and Metrics is here. Remember that it takes 48 hours for GA4 API to recognise your custom dimensions. There are some limitations as well that you can read at the link above.
2- DataLayer
In this method, you need to work with GTM or Google Tag Manager, as well.
To read more, you can follow this link GTM.

Events dataLayer.push code in Google tag manager wordpress

I implemented GA4 using Google tag manager in wordpress without using plugin.But I don't where to add the dataLayer.push code for events like view_item_list, view_item, add_to_cart, remove_from_cart, view_cart.
Please say where to add the dataLayer.push code for these events. It will be useful for me if anybody shows the script with dynamic values.

Google Tag Manager and e-commerce don`t see purchase

Now I am testing e-commerce using Google Tag Manager on http://shtrafua.com/test-2 but Analytics don`t see this purchases.
E-commerce in Analytisc activated.
GA debug show
ga("gtm1478156958663.ecommerce:addTransaction", {id: undefined, affiliation: undefined ....
but dataLayer is full fill.
I would be grateful for any advice.
I decide problem. I use Enhanced Ecommerce dataLayer syntax. I change Transaction Tag to a Page View with Enable Enhanced Ecommerce and Use Data Layer checked. Now its work. If you use dataLayer.push you dont need dataLayer declaration above the GTM code
This is not much information to go on, but my guess would be that your GA tag is set to be fired on page load. Since your datalayer is filled only after the GTM tag there is no e-commerce data available on page load, hence all values are undefined and the ecommerce portion of the tag is ignored.
You can easily test this by changing the trigger for your GA to "DOM ready", so the tag fires only after the transaction has been pushed to the datalayer. Or, if at all possible, move the datalayer declaration above the GTM code.

Enhanced Ecommerce data not showing up in Analytics using Tag Manager

I am trying to implement Enhanced Ecommerce (EE) for Google Analytics (GA) using Google Tag Manager (GTM) but don't see any data showing up in GA.
Using the GTM preview mode, I can see that the data in the dataLayer is correct and that the right Tags are fired. I have also made sure to (correctly) create separate Tags for all the things I want to measure, which are:
measuring the product detail view
measuring the checkout process (both checkout steps and checkout options)
measuring purchases
Perhaps I should also note that I am developing from localhost, but I don't think that should matter (?).
Edit:
When composing this question I was unable to post images, but I later realized I can post links of course. So, for clarification:
Tags that are fired on my Product Detail Page:
http://oi60.tinypic.com/2woeqe8.jpg
The dataLayer containing the ecommerce data:
http://oi59.tinypic.com/6s7yxd.jpg
It turned out working localhost actually was the problem, my solution to this problem is explained here: https://stackoverflow.com/a/29214212, but in short: go to Tags > My Tags > Configure Tag > More Settings > Fields to Set, type in 'cookie' in the Field Name input field, select cookieDomain from the suggestions, and set the value to none.

Google Tag Manager with ChaplinJS

I am in the process of building a chaplinJS client app and needed capabilities to add google analytics.
I want to use Google Tag Manager (GTM) and added the tracking code to my html file. Then went on over to GTM and setup the PageView event tag.
For some reason none of the page view events after the initial load are trigged. Does GTM work with chaplinJS? I imagine its looking for url change and then pushes out a Universal analytics page view event.
Has anyone else done this? I suppose the other route could be to update application.coffee and listen for "route:match" event and then push out a pageview event. I figured its easier to do this with GTM because I can always add new tags as I go.
Thoughts?
I followed the approach listed here to get my pageView tracking working
http://decompile.it/blog/2013/06/21/integrating-google-tag-manager-and-google-analytics-in-a-single-page-application/
Exactly, throw virtual pageview event on every navigation and that should help getting all pages tracked.
I have used similar handling for my backbone single page application.

Resources