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 |
---|---|
| The title of the product for which the Back in Stock alert was created |
| The specific variant of the product (e.g., "Medium / Blue") |
| The combined title of the product and its variant |
| The price of the product |
| The currency code of the product (e.g., "USD", "EUR") |
| The vendor/brand name of the product |
| The URL of the product image |
| The Shopify product ID |
| The Shopify variant ID |
| The Shopify market ID (for international markets) |
| The product handle/slug used in URLs |
Links
Variable | Description |
---|---|
| The direct link to your Shopify store's checkout page with the product pre-added |
| The link to the product page on your Shopify store |
| The unsubscribe link for customers who wish to opt-out of future Back in Stock alerts |
Store information
Variable | Description |
---|---|
| Your store's display name |
| The URL of your store's logo |
| Your Shopify store domain |
Customer information
Variable | Description |
---|---|
| The customer's name |
| The customer's email address |
| The customer's locale/language preference |
Notification context
Variable | Description |
---|---|
| The position of this template (0 for initial alert, 1+ for reminders) |
| 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 |
---|---|
| The title of the product |
| The specific variant of the product |
| The combined title of the product and its variant |
| The vendor/brand name of the product |
| The price of the product |
| The currency code |
| The Shopify product ID |
| The Shopify variant ID |
| The Shopify market ID |
| The product handle/slug |
Links
Variable | Description |
---|---|
| The link to purchase the product (either checkout or product page based on settings) |
Shop Information
Variable | Description |
---|---|
| Your store's display name |
| Your Shopify store domain |
Customer Information
Variable | Description |
---|---|
| The customer's name |
| The customer's phone number |
| The customer's locale/language preference |
Notification Context
Variable | Description |
---|---|
| The position of this template (0 for initial alert, 1+ for reminders) |
| 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
Thank you!