Creating a custom landing page on Fermion
A custom landing page is a great way to drive traffic and attention with a specific campaign for your brand.
Whenever you create a course or a digital product on Fermion, you automatically get a sales page for the product. For most cases, that is sufficient. However, it might not be sufficient if you are an advanced marketer or have a team of marketing people with you who want to:
…among other reasons. This document lists how you can build a custom page on Fermion.
What is a custom page?
A custom page on Fermion is a page that you fully control on a source code level. That means, you can write raw HTML that needs to be served on that page and we’ll do that.
Would you also host CSS, JS, and other assets?
Yes, Fermion automatically hosts all static assets that are included in your build output, including:
When you upload your ZIP file containing the build output, we automatically:
All assets will be served from a URL that looks like this:
Please make sure that:
How to create a custom page in Fermion?
There are two ways to
Follow the steps below:


/event/
prefix, you can do that easily.


Draft
mode and it will unpublish your page.
How do I include checkout links to my course?
If you have a course hosted on Fermion, you can add checkout links to your products as follows.
Any anchor link or button where the redirect URL is as follows will open the checkout page:
Here is a documentation of all the URL parameters you can use:
course-slug
: Slug of your course that you want the user to purchase. This field is mandatory and cannot be omitted.discount-code
: Any discount code that needs to be automatically applied to users’ checkout session. Note that this discount code must exist in your Course Discounts
section inside your Manage Course
area for that course. If it doesn’t exist or is expired, user will see an “Invalid discount code” warning, and they will be able to complete the checkout at full price. This field is optional and can be omitted.prefilled-name
: Add the name of the user here to be prefilled on checkout. This is useful if your landing page takes user input. This field is optional and can be omitted.prefilled-email
: Add the email of the user here to be prefilled on checkout. This is useful if your landing page takes user input. This field is optional and can be omitted.prefilled-phone-number
: Add the phone number of the user here to be prefilled on checkout. This is useful if your landing page takes user input. This field is optional and can be omitted.smart-checkout-redirect
: Set this to true
inside parameter and if prefilled-email
and prefilled-name
is present, we will automatically redirect to the best available payment gateway. This reduces one step for user to complete.Code Sample
Please make sure to encode values in your parameters properly otherwise it may break checkout flow. Use the following JavaScript code to construct the checkout page URL if you are unsure:
The code snippet above properly constructs URL parameters in a safe manner. If you wish to construct your URL manually and not use an approach like above, please make sure to use encodeURIComponent
for every value in your input to avoid creating a broken URL, especially when you take prefilled input like name and email from customers. Read more about encodeURIComponent
here.