Hi,
I tested this and found the following:
#1 I setup GA4 config tag to be routed to my server side GTM
#2 I setup GA4 ecommerce tracking so that add_to_cart, view_item and similar ecommerce events are also sent to the server side container with the product data
When an ecommerce action, like view_item is fired in the browser, the following ecommerce “items” data is populated in the browser:
{
item_id: 38,
item_name: "Vneck Tshirt",
item_brand: "Fancy Brand",
price: 18,
item_category: "Tshirts",
google_business_vertical: "retail",
id: "38"
}
google_business_vertical
and id
is for Google Ads, all other parameters are for GA4 tracking.
The server container gets this incoming request:
/g/collect?
v=2&
tid=G-AAABBB111222&
gtm={redacted}&
_p=323112895&
_dbg=1&
_z=ccd.tfB&
cid={redacted}&
ul=en-us&
sr=1536×864&
_s=3&
cu=EUR&
sid=1652812578&
sct=29&
seg=1&
dl=https%3A%2F%2Fwoo.gtm4wp.dev%2Fproduct%2Fvneck-tee&
dt=Vneck%20Tshirt%20-%20GTM4WP%20WooCommerce%20Sandbox%20Site&
en=view_item&
pr1=id38~nmVneck%20Tshirt~brFancy%20Brand~pr18~caTshirts~k0google_business_vertical~v0retail&
epn.value=18&
richsstsse
As you can see, pr1 is populated:
id38
nmVneck%20Tshirt
brFancy%20Brand
pr18
caTshirts
k0google_business_vertical
v0retail
The generated Google Ads request is this:
https://googleads.g.doubleclick.net/pagead/viewthroughconversion/123456789/?
random=1652812779947&
cv=10&
fst=1652812779947&
fmt=3&
bg=ffffff&
guid=ON&
u_w=1536&
u_h=864&
gtm=3oes5g0&
url=https%3A%2F%2Fwoo.gtm4wp.dev%2Fproduct%2Fvneck-tee&
tiba=Vneck%20Tshirt%20-%20GTM4WP%20WooCommerce%20Sandbox%20Site&
value=18&
item=(18**38**)&
data=event%3Dview_item
Both item id
, price
and event name
is present in the request.
What could be the difference between your GTM setup and my?