Hello! I'm getting a 400 error when sending a sim...
# support
p
Hello! I'm getting a 400 error when sending a simple Promotions Viewed event to GA4.
Copy code
{
  "error": "Products is an required field for 'Promotion Viewed' event"
}
Request
Copy code
window.rudderanaltyics.track(
  'Promotion Clicked',
  {
    creative: "home-promo-order-3"
    name:  "Fancy Heals"
    position: "home-promo-1"
    promotion_id:  "2022-5-Fancy Heals"
  }
)
Settings Use device-mode to send events: False
Promotion Clicked
event is passing, with the same payload.
Hey @shy-kite-21035 thanks for the response. We're sending an empty array for products in production to GA4 cloud.
Copy code
"properties": {
        "creative": "luxury-promo-order-7",
        "name": "CLASSY CHAIN BAGS",
        "position": "luxury-promo-5",
        "products": [],
        "promotion_id": "2022-9-CLASSY CHAIN BAGS"
    },
But we're getting an error. Does this mean that the array cannot be empty? Got any recommendations if my promo has not products at the time when it's displayed on the site?
Or am i understanding the concept of "promotion" wrong? In our case, promotion is like the home page banner.
g
From the error you mentioned, it does look like you must specify the products in the call. And about your question
Got any recommendations if my promo has not products at the time when it's displayed on the site?
I don't have answer but this video explains different e-commerce events available to you. Are you using the right event for your use case?

https://youtu.be/6F6lFc423MU▾