Displaying the Affiliate ID in the Landing Page URL

Written By Stefan S.

Last updated 5 months ago

Adding the affiliate ID into the landing page URL is a great way to customize a page dynamically, so the content is tailored for that visitor.

All you need to do is include the [aff_id] shortcode in the URL.

ie:

  • http://www.mydomain.com/?[aff_id]

  • http://[aff_id].mydomain.com

  • http://www.mydomain.com/[aff_id]

Process would work this way:

1: Affiliate link is clicked, and the affiliate cookie is dropped.

2: When Paykickstart redirects to your landing page, itโ€™ll replace [aff_id] with the affiliate id in the cookie (or blank if no cookie is set)

3: You can then grab this affiliate ID from the URL via a server-side or frontend script on your landing page to use as needed.

3B (optional): If using the PayKickstart API calls, attach the value of the parameter in the URL to the affiliate_id request parameter for the related call
(e.g. New Purchase, Up/Downgrade etc.)