Skip to main content

Add Page Entry Points to Non-Shopify Store

Written by Harneet Kaur

Plans: All plans

Platforms: WooCommerce, Magento 2, Magento 1, BigCommerce, Squarespace, PrestaShop, CS-Cart, 3dcart, and other non-Shopify platforms

Applies to: Tracking pages, Returns pages, and Warranty pages

Overview

Page entry points are the links and Track buttons that lead shoppers from your non-Shopify store to your Tracking, Returns, and Warranty pages. Learn how to add these entry points to WooCommerce, Magento, BigCommerce, Squarespace, PrestaShop, CS-Cart, 3dcart, and other platforms. This guide walks you through setting up a custom domain, copying your page URLs, choosing where to place links, adding the Track button, and adding deep links with order details pre-filled. Once live, shoppers reach your pages from your store menus, account pages, and emails.

Before You Begin

Requirements

  • A Tracking, Returns, or Warranty page set up in AfterShip

  • Admin access to your store platform

  • Access to your theme files (via FTP for PrestaShop) if you add the Track button to the order history page

Limitations

  • The Shopify proxy URL isn't available for non-Shopify stores. Everything else in this article is.

Step 1: Set Up a Custom Domain (Recommended)

For non-Shopify stores, a custom domain is the primary method. It gives you a branded URL that works on any platform and is independent of your store software.

  1. Set up your custom domain. See Set up a custom domain for your pages.

  2. Use the steps below to add links to your custom domain in the right places.

Tip: If you'd rather not change DNS, the default {short_name}.aftership.com URLs work as well.

Step 2: Copy Your Page URLs

Copy the URL of each page you want shoppers to reach from your store.

  1. Go to Branded pages > Page insertion > Domains and page URLs.

  2. Click Copy URL next to the page you want to link: the universal tracking URL, a specific Tracking page, the Returns page, or a Warranty page.

The Add page to store dialog, with the page URL to copy

Step 3: Choose Where to Put the Links

The work is the same on every platform: put a link to your page somewhere shoppers can find it. Add links in these places:

  • Main navigation: a Track order or Returns item in your header or footer menu.

  • Account and order pages: a link on the order detail page, so a shopper looking at an order can act on it right away. This is the highest-value placement and the one most often missed.

  • Return policy page: select the relevant text and link it to your Returns page.

  • Order confirmation and shipping emails: add the link to your email templates.

  • Help and FAQ pages: link from any content about delivery or returns.

Step 4: Set Up the Track Button

Instead of only linking out, you can place the order lookup widget directly on a page of your store. The widget is a Track button with a lookup form, so shoppers enter their order or tracking number without leaving your store. For full setup details, see Set up the order lookup widget (Track button).

  1. Go to Branded pages > URLs and embedding > Order lookup widget.

  2. Configure the button's look and lookup options.

  3. Copy the generated code.

The Order lookup widget tab in URLs and embedding

The code has two parts: a loader script, and a <div class="as-track-button"> element that you place wherever the button should appear. For example:

<div id="as-root"></div>
<script>(function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(e.getElementById(n))return;r=e.createElement(t);r.id=n;r.src="//button.aftership.com/all.js";i.parentNode.insertBefore(r,i)})(document,"script","aftership-jssdk")</script>
<div class="as-track-button" data-domain="yourbrand.aftership.com" data-size="large" data-btn-label="Track"></div>
  • data-domain is the domain of your tracking page: your {short_name}.aftership.com domain or your custom domain.

  • data-size is small, medium, or large.

  • On an order history page, add data-tracking-number="…" with the platform's tracking-number variable, so the button opens that shipment directly.

Step 5: Add Links and the Track Button to Your Platform

Follow the steps for your store platform to add your page URLs and the Track button code.

WooCommerce

Returns link in the menu

  1. In the WordPress admin, go to Plugins > Add new.

  2. Install and activate the Page Links To plugin.

  3. Go to Pages > Add new and enter a title, such as Returns.

  4. In the Page Links To panel, select A custom URL, paste your Returns page URL in the Links to field, and publish.

  5. Go to Appearance > Menus, add the page to your menu, and click Save menu.

Track button on a page

  1. Go to Pages > Add New page, enter a title, and publish.

  2. Open the page, click + > Custom HTML, paste the track button code, and publish.

  3. Click View page to check the button.

Track button on the order history page

  1. In the WordPress admin, open the AfterShip Tracking menu item near the bottom of the sidebar.
    ​

  2. Select Use Track Button on the Order History Page and save.
    ​

  3. The button appears once an order has a tracking number.
    ​

Magento 2

Returns link

  1. Go to Content > Blocks and edit the Footer Links block.

  2. Right-click the Returns item and choose Insert/Edit link.

  3. Paste your Returns page URL and save the block.

  4. To link from your policy page, go to Content > Pages, open the return policy page, select the text, and link it.

Track button

  1. Go to Content > Pages > Add New Page and enter the page information.

  2. Set the status to Enabled and save.

  3. Edit the page, open Content > Show/Hide editor, paste the track button code, and save.

Magento 1

Returns link

  1. Go to CMS > Pages > Add new page, enter a title and a URL key such as returns, and save.

  2. Open app/design/frontend/default/{theme}/layout/customer.xml.

  3. In the Default layout section, find <reference name="top.links"> and add a link action:

<reference name="top.links">
<action method="addLink" translate="label title"><label>Returns</label><url>returns</url><title>Returns</title><prepare/><urlParams/><position>60</position></action>
</reference>

4. Replace returns with your Returns page URL, save, and refresh your site. You can also add the link to CMS > Static Blocks > Footer Links, or link text on your policy page under CMS > Pages.

Track button

  1. Go to CMS > Pages > Add New Page, enter a title and URL key, set the status to Enabled, and save.

  2. Edit the page, open Content > Show/Hide editor, paste the track button code, and save.

  3. For the order history page, edit template/shipping/tracking/popup.html in your theme.

  4. Replace the tracking number cell with the as-track-button element, passing data-tracking-number="<?php echo $this->escapeHtml($track->getTracking()); ?>".

BigCommerce

Returns link

  1. Go to Storefront > Web pages > Create a web page and enter the page details.

  2. Under Navigation menu options, enable Yes, show this web page on the navigation menu, and save.

  3. To link from your policy page, open Storefront > Web pages > Shipping & Returns, select the text, and link it to your Returns page URL.

Track button on a page

  1. Go to Channel manager > Storefronts, open your storefront's … menu, and choose Edit settings.

  2. Select Web pages > Create a web page, keep Contain content created using the WYSIWYG editor below, and enter a page name, such as Track your order.

  3. Open the HTML source editor, add <body> tags, and paste the track button code between them.

  4. Click Update, then Save & Exit.

Track button on the order history page (Stencil themes)

  1. Under Themes, make a copy of your current theme and choose Edit theme files.

  2. Open Templates > pages > account > orders > details.html.

  3. Find the shipping_track link block

    {{#if shipping_track.url}}
    <a href="{{shipping_track.url}}">
    {{/if}}

    {{#if show_shipping_method}}
    {{shipping_track.number}} &mdash; {{shipping_method}}
    {{else}}
    {{shipping_track.number}}
    {{/if}}

    {{#if shipping_track.url}}
    </a>
    {{/if}}

  4. Replace it with the as-track-button element, passing data-tracking-number="{{shipping_track.number}}".

    {{#if shipping_track.number}}

    <div id="as-root"></div>

    <script>

    (function(e,t,n){var r,i=e.getElementsByTagName(t) [0];if(e.getElementById(n))return;r=e.createElement(t);r.id=n;r.src="//button.aftership.com/all.js";i.parentNode.insertBefore(r,i)})(document,"script","aftership-jssdk")

    </script><br>

    <div class="as-track-button" data-domain="track.aftership.com" data-size="small" data-tracking-number="{{shipping_track.number}}" data-slug="{{shipping_track.asdf}}" >

    {{/if}}

    data-domain is the website domain of the tracking page. Can be your default URL or custom domain.

  5. Save the changes

For non-Stencil themes, make the same change in Snippets > AccountShipmentRow.html using %%GLOBAL_TrackingNumber%%.

Note: If you get a link instead of a number, use the tracking-number variable rather than the tracking-link variable.

Squarespace

  1. Go to Pages > Main navigation, click +, and choose Link.

  2. Enter a title, such as Returns or Track order, paste the page URL, and save.

  3. For the footer, click Edit on the footer block and add a text link with the page URL.

  4. Click Apply > Done.

PrestaShop

Track button on a page

  1. Via FTP, open your theme folder and find the header.tpl file.

  2. Insert the loader script after the <body> tag, and save:

{literal} <div id="as-root">&nbsp;</div><script>(function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(e.getElementById(n))return;r=e.createElement(t);r.id=n;r.src="//button.aftership.com/all.js";i.parentNode.insertBefore(r,i)})(document,"script","aftership-jssdk")</script> {/literal}
  1. In the PrestaShop admin, go to Preferences > CMS and add a new page.

  2. Enter the meta title, description, keywords, and URL, and save.

  3. Open the page's HTML editor, paste the button element, and save:

<div class="as-track-button" data-domain="yourbrand.aftership.com" data-size="large"></div>

Replace yourbrand.aftership.com with your {short_name}.aftership.com domain or your custom domain.

Track button on the order history page

  1. Via FTP, open your theme folder and find the order-detail.tpl file.

  2. Find the shipping_number_show span:

<span id="shipping_number_show">{if $line.tracking_number}{if $line.url && $line.tracking_number}<a href="{$line.url|replace:'@':$line.tracking_number}">{$line.tracking_number}</a>{else}{$line.tracking_number}{/if}{else}-{/if}</span>
  1. Replace it with the code below, and save:

<span id="shipping_number_show">{if $line.tracking_number}{literal}<div id="as-root"></div><script>(function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(e.getElementById(n)){aftership.buttonCreator.create();return;}r=e.createElement(t);r.id=n;r.src="//button.aftership.com/all.js";i.parentNode.insertBefore(r,i)})(document,"script","aftership-jssdk")</script>{/literal}<div class="as-track-button" data-domain="yourbrand.aftership.com" data-size="small" data-tracking-number="{$line.tracking_number}"></div>{else}-{/if}</span>

Some themes use <span class="shipping_number_show"> instead of an ID. On PrestaShop 1.7.6.5, the line to replace is <td>{$line.trackingnofilter}</td> and the variable is {$line.tracking}. If the button doesn't appear afterward, go to Advanced parameters > Performance, clear the cache, and recompile templates.

Note: If you see "The content field (English) is invalid" when adding the track button, install the standard TinyMCE editor.

CS-Cart

  1. Go to Website > Pages, click + > Add page, enter a name, and create the page.

  2. Open the page, click <> to open the HTML source editor, paste the track button code, and save.

  3. Note the page_id in the URL.

  4. Under Layouts, open the footer menu block's Content tab and add <li><a href="{"pages.view?page_id={id}"|fn_url}">Track order</a></li>.

  5. Save and enable Use this content for all the block instances.

3dcart

  1. Go to Content > Site content > Footer Extra Pages > Edit, add a page, and save.

  2. Open the page's Content > View source code, paste the track button code, and save.

  3. For the order history page, go to Settings > Design > Themes & Styles > More and edit templates/common-core/order-history-view.html.

  4. Replace the shiptracking.asp link with the as-track-button element, passing data-tracking-number="[trackingcode]".

Other platforms

Look for the menu editor or page editor in your platform's admin. Every platform supports a custom link, and most support pasting an HTML snippet into a page.

Step 6: Add Deep Links With Details Pre-filled

A plain link takes the shopper to the lookup form. A deep link carries the shopper's order number and email, so they go straight to their order. Use deep links anywhere you already know the order, such as the order detail page in a customer's account or an email template where you can insert order variables.

Tracking deep link

https://{domain}/order-status?order-number={order_number}&email={email}

For the full parameter reference, refer to Learn about page URLs and domains.

Returns deep link

Add /instant?order_number={order_number}&email={email} to your Returns page URL. The link takes the shopper straight to the Select return item step. For example:

https://{returns_page_url}/instant?order_number=1234&[email protected]

  1. Build the deep link using the format for your page.

  2. Replace the variables with your platform's order number and email variables.

  3. Check the parameter format before you roll the link out.

  4. Test the link with a real order.

Deep links matter more than they seem. The lookup form is where most shoppers drop off on a post-purchase page, and you avoid that step entirely when you already hold the details.

Warning: A deep link with a mistyped parameter fails silently. The shopper sees an empty form and assumes the link is broken.

Step 7: Test Your Links

Check every entry point the way a shopper sees it. Links inside account pages and email templates are the ones most often left pointing at an old URL after a change.

  1. Open your store in a normal shopper's browser, not an admin session.

  2. Click every link and Track button you added.

  3. Check the links in your account pages and email templates.

To remove an entry point, delete the link or the track button code from your platform.

What Your Shoppers Will Experience

After completing these steps:

  • Shoppers find Track order and Returns links in your store menus, account pages, policy pages, and emails.

  • Shoppers enter their order or tracking number in the Track button form without leaving your store.

  • Shoppers on the order history page click the Track button to open that shipment directly.

  • Shoppers who open a returns deep link land on the Select return item step.

Troubleshooting

Problem

Cause

Solution

The Track button doesn't appear on the WooCommerce order history page

The order doesn't have a tracking number yet

Wait until the order has a tracking number; the button appears then

The Track button doesn't appear on the PrestaShop order history page

PrestaShop is serving cached templates

Go to Advanced parameters > Performance, clear the cache, and recompile templates

I see "The content field (English) is invalid" when saving a PrestaShop page

The page editor doesn't accept the pasted code

Install the standard TinyMCE editor

The BigCommerce order history page shows a link instead of a tracking number

The template uses the tracking-link variable

Use the tracking-number variable instead

Shoppers see an empty form when they open a deep link

A parameter in the deep link is mistyped

Check the parameter format and test the link with a real order

A link opens an old page

Links in account pages or email templates weren't updated after a change

Copy the current URL from Domains and page URLs and update the link

FAQs

1. Can I use the Shopify proxy URL on a non-Shopify store?

No. The Shopify proxy URL is only for Shopify stores. Use a custom domain or the default {short_name}.aftership.com URL instead.

2. Do I need a custom domain to add links to my store?

No. A custom domain is the recommended method for non-Shopify stores, but the default {short_name}.aftership.com URLs work as well.

3. Where should I add the link first?

Add it to the order detail page in your customers' accounts. This is the highest-value placement and the one most often missed.

4. Can the Track button open a specific shipment?

Yes. On an order history page, add data-tracking-number with your platform's tracking-number variable, and the button opens that shipment directly.

5. Can I embed the page in my store instead of linking to it?

Yes. If you want the page inside your own layout rather than at its own address, use an iframe. See Embed pages into your store using an iframe.

6. My platform isn't listed. Can I still add links?

Yes. Look for the menu editor or page editor in your platform's admin. Every platform supports a custom link, and most support pasting an HTML snippet into a page.

Key Takeaways

  • Page entry points lead shoppers from your non-Shopify store to your Tracking, Returns, and Warranty pages

  • A custom domain is the primary method, but default {short_name}.aftership.com URLs also work

  • Entry points work on all plans for non-Shopify platforms, without the Shopify proxy URL

  • Deep links take shoppers straight to their order or the Select return item step

  • A deep link with a mistyped parameter fails silently and shows shoppers an empty form

Did this answer your question?