Lexer Product Recommender → Klaviyo Integration
The Lexer Product Recommender integration with Klaviyo enables you to enhance your email marketing campaigns with personalized product recommendations. By leveraging Lexer's predictive model that analyzes customer behavior, you can deliver tailored product suggestions directly in your Klaviyo emails to increase engagement and drive conversions.
This integration allows you to sync product recommendations from Lexer to Klaviyo, where they can be dynamically inserted into email templates. Each recipient will see products that are specifically recommended for them based on their past purchasing behavior and preferences.
What is the Product Recommender?
Lexer's Product Recommender pinpoints the type of product an individual is most likely to purchase next based on their past behavior. Our model analyzes historical buying patterns, preferences, and trends to identify the product category that aligns best with each customer's interests.
The Product Recommender generates several attributes for each customer:
- Recommended Product Product ID
- Recommended Product Name
- Recommended Product Type
- Recommended Product SKU
- Recommended Product Size
- Recommended Product Color
For this integration with Klaviyo, we'll be syncing the Recommended Product Product ID value, which can then be used to pull in product details from your Shopify catalog.
Requirements
Before setting up this integration, ensure you have:
- Lexer connected with Klaviyo to sync Product Recommender attributes
- Lexer product recommender attributes appear in Understand > Segment
- Klaviyo connected with Shopify to sync Product Catalog
Configuration steps
Step 1: Set up the activation in Lexer
Configure an activation that syncs the "Product Recommended Product ID" attribute to a custom property in Klaviyo. The custom property can be called anything, but in this example we've called it lexer_product_recommender
. You should set the List Action to be Append so that we're always syncing the values every day.

Step 2: Verify data transfer to Klaviyo
Once the activation has run, you should see this custom property appearing on profiles in Klaviyo.

Step 3: Create email template in Klaviyo
Create a new email template in Klaviyo. In a text block, add this code snippet to look up the lexer_product_recommender
property for each customer and load the recommended product from the catalog. Replace {default}
with a product id from your catalog as a fallback.
{% catalog person|lookup:"lexer_product_recommender"|default:'{default}' %}
{{ catalog_item.title }}
{{ catalog_item.id }}
{% endcatalog %}

Step 4: Add product image
Add an image block to show the product in your email.

As you go to add the image, select the Dynamic Image option and use the value:
{% catalog person|lookup:'lexer_product_recommender'|default:'{default}' %}
{{ catalog_item.featured_image.thumbnail.src }}
{% endcatalog %}

Step 5: Add product link button
Add a Button to your email so we can link to the product in Shopify. Add this code snippet to the Link address field on the left side of the screen.
{% catalog person|lookup:"lexer_product_recommender"|default:'{default}' %}

Testing Your Integration
Now you can preview this for any customer in Klaviyo. Click Preview & test in the top right corner, and you can Search for a profile to see how their recommended product will appear in the email.

Best practices
Using Fallback Products Effectively
- Always specify a default product ID in the
default:'{default}'
parameter - Choose fallback products that have broad appeal or are current bestsellers
- Consider seasonal fallbacks that change throughout the year
- For new customers with no recommendation data, fallbacks are especially important
Optimizing Sync Frequency
- Set your Lexer activation to run daily to ensure recommendations stay current
- Schedule syncs to run before your regular email sends to capture the latest data
- After major sales or promotional events, consider running an additional sync to capture new behavior patterns
Email Design Considerations
- Place recommendations in a clearly defined, visually distinct section
- Use compelling headlines like "Picked for You" or "We Thought You'd Like This"
- Keep the recommendation section simple with one clear product rather than multiple options
- Include both the product image and a clear call-to-action button
- Consider using product name, image, and price (if available via the catalog)
Testing and Optimization
- A/B test different placements of recommendation blocks within your email templates
- Test different call-to-action text for the recommendation buttons
- Monitor click-through rates on recommended products to assess effectiveness
- Compare performance between personalized recommendations and generic product features
Maintaining Data Quality
- Regularly check that product IDs in Lexer match those in your Shopify catalog
- Watch for products that go out of stock and consider excluding them from recommendations
- Ensure product images in your catalog are high quality and consistently sized for email display
Troubleshooting
Recommendations Not Appearing in Klaviyo
Issue: Product recommendations aren't showing up in customer profiles in Klaviyo.
Solutions:
- Verify that the Lexer activation is running successfully without errors
- Check that the custom property name in Klaviyo matches exactly what was configured in Lexer (e.g., "lexer_product_recommender")
- Ensure the List Action is set to "Append" in the activation settings
- Confirm that customers have sufficient purchase history in Lexer to generate recommendations
Product Images Not Displaying
Issue: The dynamic product images aren't showing up in email previews.
Solutions:
- Verify that Klaviyo is properly connected to your Shopify catalog
- Check that the product IDs being synced from Lexer match exactly with IDs in your Shopify catalog
- Confirm that products have images assigned in your Shopify catalog
- Ensure the image code snippet is correctly formatted:
{% catalog person|lookup:'lexer_product_recommender'|default:'{default}' %}
{{ catalog_item.featured_image.thumbnail.src }}
{% endcatalog %}
Product Links Not Working
Issue: The buttons in emails aren't linking to the correct product pages.
Solutions:
- Make sure the button link code is properly implemented
- Verify that the product exists and is active in your Shopify store
- Check for any URL formatting issues in Klaviyo's button settings
- Test the link by previewing the email and clicking through to confirm it works
Default/Fallback Products Not Showing
Issue: When no recommendation is available, the fallback product isn't appearing.
Solutions:
- Ensure you've specified a valid product ID in the default parameter
- Verify that the fallback product exists in your Shopify catalog
- Check the format of your code snippet to ensure the default syntax is correct:
person|lookup:"lexer_product_recommender"|default:'12345678'
Sync Delays
Issue: There seems to be a delay between Lexer recommendations and their appearance in Klaviyo.
Solutions:
- Check the scheduled run times of your Lexer activation
- Allow up to 24 hours for initial data to populate after setting up the integration
- Verify that both Lexer and Klaviyo API connections are healthy
- For time-sensitive campaigns, manually trigger the activation to refresh data
Additional Resources
- More information about the Catalog lookup tag: Klaviyo Documentation
- For assistance with this integration, contact Lexer Support