I already have an shopify app running services for clients. I want to add webpixels tracking support to the app. The current webpixels demo app requires a Javascript server running all time to keep the pixels sending from shopify shops.
I configured the pixels to be send to an public accessible endpoint different from the localhost server. It is working until I stopped the localhost javascript demo server. If I stopped the localhost demo server, the webpixels will stop sending to the event handlers after few minutes. Is there any reason for this? Is the shop checking if the demo server is running before sending the pixels? May I know how that is done?
I current app is in PHP. I can not have existing app changed to Javascript. So the demo app with fake ‘trycloudflare.com’ configurations are not directly adoptable.
What do I need to add to my existing app to so the shops with this app will know the app is running and keep on sending the registered webpixels? Do I need to add that /ping endpoint?