Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom params into subscription redirect URL #36

Open
tanzirulhuda opened this issue Aug 6, 2023 · 6 comments
Open

Add custom params into subscription redirect URL #36

tanzirulhuda opened this issue Aug 6, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@tanzirulhuda
Copy link

Since Lemon Squeezy require the ?aff query parameter in order to monitor affiliate referral. How do we add that to the subscription redirect URL?

@driesvints driesvints added the enhancement New feature or request label Aug 6, 2023
@driesvints
Copy link
Contributor

I still need to look into this but already have an idea to automatically add it from the incoming request.

@mraheelkhan
Copy link
Contributor

@driesvints , can you add some words about your idea?
I may contribute it.

@heyjorgedev
Copy link
Contributor

Can't this be achieved with their tracking script?

https://docs.lemonsqueezy.com/help/affiliates-for-merchants/getting-referrals

Trying to gather more information about this to see if I could help.

If we want to implement this into the package I think a simple combo of a middleware, session put and then using the "aff" stored in session when calling the checkout or something like that

@driesvints
Copy link
Contributor

No I think iirc we indeed need to propagate the aff somehow. But don't remember the details.

@heyjorgedev
Copy link
Contributor

@driesvints and does my draft solution on the message above goes in the direction of what you were thinking of?

@driesvints
Copy link
Contributor

Will need to find some time to dig into that. Not sure when that'll be sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants