How to add a pixel which fires when any user registers?

It is because Google Adwords and Facebook Ads only allow us to place image pixels and don’t allow server-to-server communication.