- Overview
- Create the Content Page
- Add the Redirect Script
- Structure Email or SMS Links
- Performance Recommendations
- Conclusion
This article explains how to set up a fast-redirect landing page using a Content Page in your AmeriCommerce store. This method is ideal for handling marketing blasts via email or SMS by minimizing the impact of preloading behavior from email clients, saving bandwidth consumption, and optimizing user experience.
Create the Content Page
- Log in to your admin console and navigate to Content > Pages.
- Click New in the top-right corner to create a new Content Page.
- Enter a Title such as "Redirect Landing".
- In the Custom URL, use something clean like
/landingpage
. - Ensure you assign the page to the correct store. Content Pages are store-specific to prevent cross-store visibility.
- Enable the Show Content Only checkbox. This ensures the page displays without headers, footers, or navigation for faster rendering.
- Paste the following sample HTML into the page content editor, replacing the image source (/Shared/images/promo-banner.jpg) with an image of your choice.
<b><span style="font-size: 20px;">Limited Time Offer!</span></b> <br><img src="/Shared/images/promo-banner.jpg" alt="Promotional Banner"> <br>Page will redirect automatically. If not, click <a href="#" id="manualLink">here</a>.
Add the Redirect Script
- Still in the content editor, scroll to the bottom of your HTML content and insert this script:
<script>
window.addEventListener("load", () => {
const params = new URLSearchParams(window.location.search);
const path = params.get("path") || "/";
document.getElementById("manualLink").href = path;
setTimeout(() => {
window.location.replace(path);
}, 100);
});
</script>
Script Notes: The redirect executes in 100ms, reducing the chance users will notice any delay while helping prevent unwanted email preloading. You can adjust the "100" near the end of the script to change this.
If a path is not provided in the URL's query string, it will redirect to the home page instead. "/" - You can change this in the path row of the script if you have another sales page you would like to default back to, just incase a path is forgotten.
Structure Email or SMS Links
- Instead of linking directly to a product or category in your messages, point to the landing page and append a
path
query parameter. - General example:
Original Link | Redirect Link |
---|---|
https://yourstore.com/store/c/28-Home-Goods.aspx |
https://yourstore.com/landingpage?path=/store/c/28-Home-Goods.aspx |
This method centralizes the redirect logic, making campaign management more efficient.
Performance Recommendations
- Keep the content minimal on the landing page to allow faster rendering.
- Use Show Content Only to strip out unnecessary design elements.
- Ensure promo images are optimized and under 100KB if possible.
- Test links across multiple email clients to identify and mitigate preloading behavior.
For more information on managing Content Pages, visit: Creating and Modifying Content Pages
Conclusion
Using a single, lightweight Content Page with dynamic redirection improves marketing delivery and user experience by bypassing heavy preloading from email clients. With a simple redirect script and properly structured links, you can streamline campaign setup while keeping content centralized and flexible.