I want to build a tool that will allow users to see all their customer data in one place. to do that, I need to know how the tracking pixel is created. thanks in advance.
A tracking pixel is just a route on your app that returns a pixel instead of any content. To do it, just save whatever data you need to save, and after you've done that return
base64.b64decode("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")while setting the following headers (which instruct the browser to serve the pixel as an image and to avoid caching it):I've implemented it to check whether people opened my e-mails or no. You can see and example in this repository