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

Check affiliate URL format and output based on AffiliateWP settings #1

Open
nutsandbolts opened this issue May 4, 2018 · 1 comment
Assignees
Labels

Comments

@nutsandbolts
Copy link

AffiliateWP allows customization of the affiliate URLs via Affiliates > Settings > Referral Settings. The URL may contain something other than /ref/ (the site owner enters what they want) and can have the user ID or username OR a custom slug at the end if they are using the Custom Affiliate Slugs addon.

We need to check what format is being used and output our affiliate links in the same format to avoid confusion. For example, if Bob Smith's affiliate link is blah.com/go/bobsmith/ and we are outputting it as blah.com/ref/123/ he may think his referrals aren't tracking correctly.

@ckmahoney
Copy link
Contributor

Yes, this is true.

We also need to account for pretty URLs. Right now the addon only works with query paramters. But some sites use the pretty path like you mention. https://example.com/my-post/ref/[email protected].

We need to hook into AffiliateWP or use one of their functions to get the setting and filter the URL accordingly.

@ckmahoney ckmahoney removed their assignment Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants