If you're working with affiliates and running your ecommerce shop on different domains per country, it's important to build a clean and conversion-optimized landing page that automatically adapts based on the affiliate referrer code.
AI Created Landing Page with Dynamic Affiliate Links
In this short tutorial, we'll show how to create a minimal and responsive landing page for your affiliates that automatically passes the referral code (ref) to country-specific domains like:
๐บ๐ธ en.selldone.com
๐ฌ๐ง uk.selldone.com
๐ฉ๐ฐ da.selldone.com
๐ซ๐ท fr.selldone.com
This setup is ideal when you're using different country-specific stores and want to keep your affiliate links centralized.
๐ฏ What Weโre Building
A simple yet stylish landing page with:
A heading: "Exalted Fashion"
A subtitle: "Select your country to start shopping..."
Four large country buttons, each with the countryโs flag
Automatic referral code handling from the URL
Hereโs the final result (scroll down for the code):
โ HTML + JS Code (Ready to Use)
You can copy-paste the following code into any .html file and host it on your server:
You have two easy options to publish your dynamic affiliate landing page:
Option 1. Deploy on Your Selldone Shop:
Log in to your Selldone dashboard, go to Pages > Static, and create a folder (e.g., affiliate). Upload your HTML file as index.html inside this folder. Then, head over to the Domains section, add a new domain or subdomain, and assign it to the new static page by setting the path to the affiliate folder.
Option 2. Deploy for Free on Cloudflare Pages (recommended):
You can also host your page for free using Cloudflare Pages. Simply create a new project, drag and drop your index.html file, and deploy it. Once it's live, assign a custom subdomain (or domain) in Cloudflare to make the page accessible on the web.
Should I use the main store domain for the affiliate landing page?
It's better to use a new subdomain (like start.yourstore.com) for the landing page and keep the main domain focused on your store. This helps protect your SEO and keeps things organized. No need to edit the landing page HTMLโjust deploy it under the new subdomain and it will work with referral codes automatically.
Written by Pajuhaan Published at:April 08, 2025April 10, 2025
More insight about How to Create a Dynamic Affiliate Landing Page for Multiple Countries
More insight about How to Create a Dynamic Affiliate Landing Page for Multiple Countries