I'm shifting UA google analytics to GA 4

The dataLayer i’m seeing on the thank you page after purchase is as follow:

var queryString = window.location.search;
var urlParams = new URLSearchParams(queryString);
var orderId= urlParams.get(‘orderId’);

window.dataLayer = window.dataLayer || ;
‘transactionId’: orderId,
‘transactionTotal’: 275.00,
‘transactionProducts’: [{
‘sku’: ‘26457’,
‘name’: ‘PBR For LIFE Original’,
‘price’: 275.00,
‘quantity’: 1
‘event’: ‘purchase’

I’m sending this dataLayer to my google analytics 4 it shows the purchase but not showing prices, values and other parameters in monetization e-commerce purchase so I think the dataLayer is not correct which is I’m receiving on the frontend of the thank you page. Please provide me with the solution.

In this case, I’d say you’re likely to find someone that’s more familiar with GA4 on the FB page for Keap. There are fewer here that work with it and GA4 is rather new so the crowd sourced information that FB offers may make a greater difference to you getting an appropriate answer.

This plugin on the Keap Marketplace will automatically do all of that for you. It’s built specifically to get all sales data from your shopping cart, order forms, and offline sales into Google Analytics Ecommerce, Google Ads, Facebook Ads Conversion Tracking, and Bing Ads Conversion Tracking.

1 Like