How to handle content_ids on the server?

Hi

How can i map content_ids on the server?

Normally i use the ucv variable from client side, but this is server only.

Any custom variable to use or something?

Thanks!

@jeppe_Nielsen whats your destinations? Stape tags will digest GA4 items and transform that into content_ids, contents etc. based on destination

That being said, a server-side UCV is in the backlog already

1 Like

Its a webhook from shopify (using Stape app webhook) going to Meta when a purchase happens.

I do use Stapes Meta tag - so you say it automatically transform it into contents and ids ? Do i send the entire ecom array or what do i do ?

hey @jeppe_Nielsen if the webhook contains ga4-items, the tag will parse that automatically and send contents and content_ids, just run the preview for your case and check not tag details but actual http request (and don’t forget to install Stape extension for convenience) - you will see those params sent

Payload does containe ga4 items. So i dont need to manually map anything? What about currency, value, also dont need to map those manually if they are in payload?

I always map things manually, didnt know the tag parsed it automacilly

@jeppe_Nielsen tag will attempt to auto-parse everything, that includes value/currency and user data. As to you manually mapping things - I applaud it and prefer to do so as well for the sake of transparency and control, in your particular case though you can give away a bit of that not to mess with contents/content_id creation.

haha yeah, im a manual mapper i guess.

Thats dope - ill just let it parse things automatically here, and check the request for parameters

@Dan Hey Dan, i just did a test and the tag doesnt parse the parameters automatically for me :frowning:

Only parses the user data, whhich i mapped manually.
Just provided 2 screenshots , 1 of the outgoing requests, and also the payload of items in webhook.

So guess i have to map it then?


@Dan I ended up just creating my own custom variable to handle content_ids and contents. That solved it

1 Like