Cooking with Context

Boost conversions by offering targeted discounts to your high-value audience

Set the table kids. This will be ready in a jiffy đź’Ą

Want to drive more sales and make your marketing more impactful? Easily create a special discount code for visitors who arrived through a specific digital ad campaign. By placing this discount right above the “Buy buttons” on your Product Detail Page, you’ll grab their attention and increase their likelihood of making a purchase.

Targeting discounts for specific audiences doesn’t just encourage immediate conversions—it helps build long-term loyalty and drives repeat purchases, boosting your customer lifetime value.

Level: Easy
Yield: CVR AOV ROAS
Prep Time: 5 min
Category: Discount/Coupon Code

Recipe Goal

No discount on PDP for a general audience

Recipe 5 - Goal 1

Discount code for visitors from a specific digital ad using UTM parameters

Recipe 5 - Goal 2

Ingredients

Rule(s)

  • UTM parameters*

* You can substitute UTM parameters for any other rule type.

Section(s)

  • Main product section*
  • Flash message section block

* We’re using Clean Canvas’s Enterprise theme for the demo.
* You can substitute any of the sections we use for ones available in your theme. Boom!

Instructions

Step 1

Start by adding the “Flash message*” section block to your theme, if it’s not already there.

* You can substitute the “Flash message” section block for any other block available in your theme.

We're going to leave the message field empty so it won't be displayed by default. We'll create variations within Context that will display the discount block based on rules.

Recipe 5 - Step 1

Step 2

In Context select the “Create recipe” button.

Recipe 5 - Step 2

Step 3

Give your new recipe a unique name. We’re going to use “Customer segment - Runners”.

Recipe 5 - Step 3

Step 4

By default, you’ll land on the Rules page, where you can set conditions to display personalized content to your visitor’s.

In our case, we want to tailor the PDP main product to runners (or those who have clicked on our digital ad focused on runners).

Start by click the “Create a rule” button

Recipe 5 - Step 4

Step 5

Select the “UTM parameters” rule type.

Recipe 5 - Step 5

Step 6

We want our digital ad to trigger the discount flash message to display for runners.

We’re going to tailor the store experience based on the UTM “campaign” field “exactly matching” the value “runners” in the URL.

Recipe 5 - Step 6

Step 7

Once you’ve created the audience rules, select the “Content variations” tab so you can create and/or select the content this audience should see once the rule is run.

Given we want to display our discount message on the “Product Details Page (PDP)”, select the “Product” template from the templates dropdown.

Once on the correct template, you’ll see the “main-product” section in the same order as it appears on your theme. Select the “Add content” or “+ Variation” button to whip up your new variation for this section.

Recipe 5 - Step 7

Step 8

Give your variation a unique name. In our case we're calling our variation "Runners - End of summer sale 15% discount”.

Recipe 5 - Step 8

Step 9

Once you’ve create the variation and opened it in the theme editor from the modal, you’ll be presented with all the properties you have in your theme for this section type.

Select the “Flash message” block within the section to edit the properties for the discount. In our case we want to add the message “End of summer sale - Use RUNNERS15 at checkout”.

Once you’re happy, save the variation and close the tab.

Recipe 5 - Step 9

Step 10

Now that you’ve created your new variation, select it and remember to hit save.

Your new recipe is now ready to be displayed to your visitors from the digital ad focused on Runners.

Recipe 5 - Step 10

Step 11

Just add your UTM parameter to the URL, apply the URL to your digital ad for runners, and delight your customers with a truly tailored discount experience.

Example: my_store.myshopify.com/?utm_campaign=runners

Recipe 5 - Step 11

Serve up higher conversions with personalized offers!

In a few quick steps, you’ve created a discount message and set it to display for visitors arriving from a specific digital ad campaign using UTM parameters. This strategic approach can significantly increase your chances of converting those visitors into customers.

Once saved, preview your changes with the big green preview button.

Pro Tip

Regularly update your discount messages to keep them aligned with your audience’s shifting preferences. A well-timed offer can maximize engagement, boost sales, and contribute to long-term growth in customer lifetime value.

Tell us how it worked for you!

Share your success story and how personalized discounts helped drive conversions by tagging #ContextResults on socials.