# I'm shifting UA google analytics to GA 4

**URL:** <https://integration.keap.com/t/im-shifting-ua-google-analytics-to-ga-4/90290>\
**Category:** Pro and Max\
**Tags:** integration, api\
**Created:** [March 16, 2023, 12:03am UTC](https://integration.keap.com/t/im-shifting-ua-google-analytics-to-ga-4/90290 "2023-03-16T00:03:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taha\_Ahmad](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@Taha\_Ahmad](https://integration.keap.com/u/Taha_Ahmad)\
**Post date:** [March 16, 2023, 12:03am UTC](https://integration.keap.com/t/im-shifting-ua-google-analytics-to-ga-4/90290/1 "2023-03-16T00:03:02Z")

</div>

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 || ;  
dataLayer.push({  
‘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.

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [March 22, 2023, 12:53am UTC](https://integration.keap.com/t/im-shifting-ua-google-analytics-to-ga-4/90290/2 "2023-03-22T00:53:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Analytics\_Connect](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/analytics_connect/32/7365_2.png) [@Analytics\_Connect](https://integration.keap.com/u/Analytics_Connect)\
**Post date:** [June 16, 2023, 8:12pm UTC](https://integration.keap.com/t/im-shifting-ua-google-analytics-to-ga-4/90290/3 "2023-06-16T20:12:14Z")

</div>

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.

> **[Google Analytics Ecommerce for Keap/Infusionsoft | AnalyticsConnect.io](https://analyticsconnect.io/)**
>
> Google Analytics Ecommerce for Keap/Infusionsoft
