Create an unique affiliate link

Hi there,

I would like to centralize multiple third-party affiliate programs into one on my WeWeb platform. My goal is to create a unique affiliate link per user, and I am wondering how challenging it would be to generate a link with a custom variable in WeWeb that automatically redirects to another website based on the chosen affiliate program.

Example: mydomain.com/prefix?coupon=code
When the link is loaded, I want to count the click, store it in my Xano database, and then automatically redirect to the third-party website.

Would using a workflow be appropriate?

Onload:

  1. API request to add a click to Xano
  2. Redirect to the third-party website

Thank you!

Yes. You should use the query string param.

1 Like