Facebook Conversion API calling by middleware on every route
Hey, I have a problem with Nuxt 3. I'm trying to do Facebook CAPI (documentation -> https://developers.facebook.com/docs/marketing-api/conversions-api/parameters). I need to read events on the website via the server. I did a post event and everything works. Unfortunately, when I upload it to Vercel, the events are not collected. I saw that on localhost my status was code 200, but on production it was 204 no content. Can anyone help me?
That's how my server/api/facebook.post.ts looks
And that's how I call it by middleware in middleware/analytics.global.ts
0 Replies