Articles on: Integrations

Customize your Klaviyo back in stock notifications with variables

Customize your Klaviyo Back in Stock notifications with variables


When creating custom Klaviyo templates for Back in Stock alerts, STOQ provides rich event data that you can use to personalize and customize your messages. This guide covers all variables that STOQ sends to Klaviyo for use in your Back in Stock email and SMS templates.


Email template


When STOQ sends Back in Stock events to Klaviyo, these variables are available in your email templates:


Product details


Variable

Description

{{event.product_title}}

The title of the product for which the Back in Stock alert was created

{{event.variant_title}}

The specific variant of the product (e.g., "Medium / Blue")

{{event.title_incl_variant}}

The combined title of the product and its variant

{{event.price}}

The price of the product

{{event.currency}}

The currency code of the product (e.g., "USD", "EUR")

{{event.vendor}}

The vendor/brand name of the product

{{event.image_url}}

The URL of the product image

{{event.product_id}}

The Shopify product ID

{{event.variant_id}}

The Shopify variant ID

{{event.market_id}}

The Shopify market ID (for international markets)

{{event.product_handle}}

The product handle/slug used in URLs



Variable

Description

{{event.checkout_link}}

The direct link to your Shopify store's checkout page with the product pre-added

{{event.product_page_link}}

The link to the product page on your Shopify store

{{event.unsubscribe_link}}

The unsubscribe link for customers who wish to opt-out of future Back in Stock alerts


Store information


Variable

Description

{{event.shop_name}}

Your store's display name

{{event.shop_logo_url}}

The URL of your store's logo

{{event.shop_domain}}

Your Shopify store domain


Customer information


Variable

Description

{{event.customer_name}}

The customer's name

{{event.customer_email}}

The customer's email address

{{event.customer_locale}}

The customer's locale/language preference


Notification context


Variable

Description

{{event.template_position}}

The position of this template (0 for initial alert, 1+ for reminders)

{{event.is_reminder}}

Boolean indicating if this is a reminder email (true/false)


SMS Template


When STOQ sends Back in Stock SMS events to Klaviyo, these variables are available in your SMS templates:


Product details


Variable

Description

{{event.product_title}}

The title of the product

{{event.variant_title}}

The specific variant of the product

{{event.title_incl_variant}}

The combined title of the product and its variant

{{event.vendor}}

The vendor/brand name of the product

{{event.product_price}}

The price of the product

{{event.product_currency}}

The currency code

{{event.product_id}}

The Shopify product ID

{{event.variant_id}}

The Shopify variant ID

{{event.market_id}}

The Shopify market ID

{{event.product_handle}}

The product handle/slug



Variable

Description

{{event.purchase_link}}

The link to purchase the product (either checkout or product page based on settings)


Shop Information


Variable

Description

{{event.shop_name}}

Your store's display name

{{event.shop_domain}}

Your Shopify store domain


Customer Information


Variable

Description

{{event.customer_name}}

The customer's name

{{event.customer_phone}}

The customer's phone number

{{event.customer_locale}}

The customer's locale/language preference


Notification Context


Variable

Description

{{event.template_position}}

The position of this template (0 for initial alert, 1+ for reminders)

{{event.is_reminder}}

Boolean indicating if this is a reminder SMS


Examples


Back in Stock Email example


<h1>{{event.title_incl_variant}} is back in stock!</h1>
<p>Hi {{event.customer_name}}, great news! The item you were waiting for is now available at {{event.shop_name}}.</p>

<div class="product-info">
<img src="{{event.image_url}}" alt="{{event.title_incl_variant}}">
<h2>{{event.title_incl_variant}}</h2>
<p>Price: {{event.price}} {{event.currency}}</p>
<p>By: {{event.vendor}}</p>
</div>

<a href="{{event.checkout_link}}" class="cta-button">Buy Now</a>

<p><a href="{{event.unsubscribe_link}}">Unsubscribe</a> from future alerts</p>


Back in Stock SMS example


🎉 {{event.title_incl_variant}} is back in stock at {{event.shop_name}}!

Get yours now for {{event.product_price}} {{event.product_currency}}: {{event.purchase_link}}


Reminder Email/SMS templates


For reminder notifications (when {{event.is_reminder}} is true), you might want to use different messaging:


Email reminder example


<h1>Still interested in {{event.title_incl_variant}}?</h1>
<p>Hi {{event.customer_name}}, this is a friendly reminder that {{event.title_incl_variant}} is still available at {{event.shop_name}}.</p>

<p>Don't wait too long - stock is limited!</p>

<a href="{{event.checkout_link}}" class="cta-button">Get It Now</a>


SMS reminder example


👋 {{event.customer_name}}, {{event.title_incl_variant}} is still available! Limited stock remaining: {{event.purchase_link}}


Best practices


For email templates

  • Always provide an unsubscribe link using {{event.unsubscribe_link}}
  • Use conditional logic with {{event.is_reminder}} to create different messaging for initial alerts vs. reminders
  • Personalize with customer name ({{event.customer_name}}) for better engagement


For SMS templates

  • Focus on the most important information (product name, price, link)
  • Include the purchase link prominently


By leveraging these STOQ-provided variables effectively, you can create dynamic, personalized Back in Stock notifications that drive conversions and keep your customers engaged.


Updated on: 15/09/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!