Skip to main content
All CollectionsSales TrackingShopify Discount Links
BETA: How to Create SecureCodes™
BETA: How to Create SecureCodes™

Stop code leaks, simplify checkout, and ensure every commission goes to the right affiliate

Heather Clark avatar
Written by Heather Clark
Updated this week

💡 This feature is currently in beta. If you encounter any issues or have suggestions for improvement, please contact our Support team by emailing [email protected].

What are SecureCodes™?

SecureCodes™ are affiliate links that provide unique, single-use promo codes to customers in real-time, ensuring a seamless and controlled shopping experience.

The codes are instantly created in your Shopify store and automatically applied at checkout - no copying and pasting needed. This allows affiliates to offer discounts while protecting your brand against promo code leaks and ensuring accurate affiliate attribution.

How SecureCodes™ Work

When a user clicks on a member’s affiliate link, they'll be prompted to redeem a discount code. Upon clicking "Generate my code," a unique, one-time-use discount code is created and automatically applied to their cart at checkout. The code is valid for one purchase and must be used within seven days.

The next person who clicks on the same member’s link and generates a code will receive a different one-time-use discount code. This way, if any codes end up on coupon sites, there will be minimal impact to your store as each code can only be used once.

How to Create SecureCodes™

Step 1: Install the Aspire Affiliates App

You must first install the Aspire Affiliates app in Shopify. Expand this section for instructions on installing the app.

  1. Log into your Shopify account.

  2. Go to the Aspire Affiliates app in the Shopify App Store.

  3. Click Install.

  4. Click Enable SecureCodes.

  5. You’ll be redirected to your Shopify store theme settings. Under App Embeds, confirm that Aspire SecureCodes is toggled on.

    You can also enable CreatorStores by toggling on Aspire CreatorStores.

  6. Click Save in the top-right corner.

Step 2: Create a Promo Code Offer

Once the app is installed, follow these steps to create a promo code offer in Aspire:

  1. Go to Reporting > Sales Tracking

  2. Click Add Offer > Promo Code Offer

  3. Enter an offer name and description, then configure the payout settings, offer type and promo code naming strategy.

    1. Secure codes will follow your selected naming strategy and end with random numbers. For example, if you select First Name + Last Initial, the format will be First Name + Last Initial + Random Number (e.g., JANED302853)."

  4. Toggle on “Generate shareable links for promo codes

  5. Toggle on “Enable One Time Use SecureCodes Generation". You may also choose to enable CreatorStores.

  6. Finish setting up the offer by configuring the purchase type and restrictions, usage limits, combination settings, and active dates.

    1. By default, "Limit to one use per customer" will be enabled, and "Limit number of times code can be used in total" will be set to 1.

    2. If an end date is selected, this will be the last day a secure code can be generated.

  7. Click “Create Offer”.

  8. Connect the offer to a project with the Promo Codes stage or add members via the Sales Tracking dashboard. When you add members to the offer, unique links will be generated for each member, but no codes will be created until a user clicks on the link.


Frequently Asked Questions

Can we customize the SecureCodes pop-up that customers see?

Not at this time.

What happens if the customer makes a purchase but does not use the promo code at checkout?

If you have set up one of Aspire's link tracking methods (see here), the conversion will still be recorded because the customer initially clicked on the member's link.

Does the customer need to copy the promo code and manually enter it at checkout?

No, the code is saved as a cookie in the user's browser and auto-applies at checkout. Users can also click the "Your Discount" widget in the bottom-right corner of your site to view their promo code.

Can we update an existing promo code offer to enable SecureCodes?

No, SecureCodes can only be enabled for new offers.

Can we create SecureCodes without enabling shareable Promo Code Links?

No, SecureCodes cannot be created without enabling shareable Promo Code Links. The feature is designed to generate a unique, one-time-use discount code only when a customer clicks on a member's promo code link. This link triggers the pop-up that informs customers about the discount and presents them with the "Generate my code" option. Without the link, there is no way to initiate the SecureCodes generation process.

Where can I find these codes in Shopify?

The promo codes will be grouped under a single discount group in Shopify, using the Promo Code Group Name specified in the offer settings. When a user clicks a member's link and redeems the offer by generating a code, the code will be added to this discount group.

If the customer does not use the promo code within 7 days, can they generate a new one?

The customer must click on the member's link again to generate a new promo code.

If I deactivate a member’s link, what happens to the secure codes generated?

Deactivating a member’s link will delete all secure codes generated through that link and prevent any new codes from being created.

Why do we need to install another Shopify app? Are both Aspire apps required? What is the difference between the two apps?

Both Aspire apps are required to use SecureCodes. The main difference is that the new app (Aspire Affiliates App) is an embedded app, meaning it is directly rendered within your Shopify Admin. Additionally, the new app requires you to have an online store, as it won’t function without one. In contrast, our existing Aspire app does not have this requirement.

Furthermore, the new app leverages Shopify’s Theme Extension capabilities to introduce new features, such as displaying SecureCode pop-ups, which interact with your store's theme. To support these features, we request the permissions shown in the screenshot below.

Did this answer your question?