Requests | Blesta


Service Worker/JavaScript Snippet for Global Affiliate Tracking

Michael K shared this idea 1 year ago
Under Consideration

It would be neat to have some type of service worker/JavaScript snippet that can be implemented in websites outside of Blesta so that affiliate tracking can be global.

For instance, say that your Blesta install is at clients.yourdomain.tld, but you don't want to link straight to the client area for affiliate tracking. By implementing a JavaScript snippet or service worker on the main website at yourdomain.tld, you can make sure no matter what link that's shared that the affiliate gets credit for commission (so long as they provide the query parameter at the end of the URL.