Best practices for implementing custom pixels

Hi there, I’m building an app and utilizing web pixels for merchant analytics and I’m wondering what’s the best way of doing this using the Remix template.

Right now I register events from the theme block extension using Shopify.analytics.publish, send the processed data to my API endpoint from the pixel extension, and save the event in my database for processing in the app itself.

My issue is that I can’t use the app proxy in the pixel, so I have to handle additional validation on my end.

Same issue i’m facing at the moment, since i can’t sign events directly due to the sandbox restrictions or use the app proxy to do so , how then i’m i expected to validate and verify that the events coming through to my server are authentic