All posts

Published 16 April 2025 in Ecommerce

Klaviyo How to Add SPF Record

Klaviyo has become one of the most popular tools for ecommerce marketers looking to engage subscribers with personalized, data-driven emails.

by Tyson

Klaviyo has become one of the most popular tools for ecommerce marketers looking to engage subscribers with personalized, data-driven emails. One key strategy for recovering lost sales is the abandoned cart email flow, which reminds customers about products they’ve shown interest in but haven’t purchased. This guide walks through adding a dynamic add to cart block in Klaviyo—a custom element that displays product information and helps guide your customers back to complete their purchase.

What Are Dynamic and Static Blocks in Klaviyo?

Content blocks serve as the building blocks for creating highly targeted emails tailored to each subscriber’s behavior. Dynamic blocks automatically iterate through arrays of items, making them perfect for checkout events where multiple products exist in a customer’s cart. These versatile elements display images, prices, product names, and other details for several products without manual configuration for each item.

Boost Your Conversion Instantly with Nudgify: Turn your website visitors into customers with real-time Social Proof and FOMO Nudges. Get Started Now

Static blocks display a single set of content rather than cycling through multiple items. They work best for events where only one product is present, such as simple add-to-cart actions where just one product’s data is available. High-level dynamic table settings often fail in these scenarios because there isn’t an array of items to iterate through.

Choosing between dynamic and static blocks depends entirely on your event data structure. For abandoned cart emails showing multiple products, dynamic blocks offer efficiency and automation. Single-product events like “Added to Cart” typically work better with static blocks that display specific product details without iteration.

Benefits of Using Product-Specific Blocks

Personalized product blocks create immediate recognition when subscribers open your emails. The visual connection to items they’ve already shown interest in dramatically increases engagement compared to generic messaging.

Product blocks transform abandoned cart emails from simple reminders into compelling shopping experiences. They showcase exactly what customers were considering, complete with images, descriptions, and pricing information that rekindles their initial interest. This approach eliminates friction in the customer journey by providing direct visual and informational pathways back to their cart.

Increase Trust & Sales with Social Proof

Boost trust, engagement, and conversions with Social Proof — tailored for any industry and easy to integrate. Seamlessly manage client access with our team portal.

Get Started Now

These elements also provide valuable data insights about which products generate the most engagement. By tracking which product blocks receive clicks, you can identify high-interest items and optimize your product offerings accordingly.

Effective product blocks incorporate these essential elements:

  • High-quality product images: Clear, professional photos that accurately represent the item
  • Compelling product titles: Concise, benefit-focused descriptions that remind customers why they were interested
  • Current pricing information: Accurate pricing that matches your store, including any applicable discounts
  • Strong call-to-action buttons: Clear directives that guide customers back to complete their purchase

How to Set Up Your Abandoned Cart Flow

Creating an effective abandoned cart flow requires proper integration with your ecommerce platform. Most popular platforms like Shopify and BigCommerce automatically connect with Klaviyo, tracking events such as “Added to Cart” and “Checkout Started” without additional configuration. This seamless integration ensures your flows trigger at the right moments with accurate product data.

Understanding event structure proves crucial when designing your flow. The “Added to Cart” event typically contains data for a single product, making it ideal for static blocks that display specific item details. Conversely, “Checkout Started” events often include multiple products, requiring dynamic blocks that can iterate through an array of items.

Timing plays a critical role in abandoned cart recovery. Most successful flows send the first email within an hour of cart abandonment, followed by additional reminders at strategic intervals. This approach balances urgency with consideration for the customer’s decision-making process.

Your flow should include conditional logic to prevent sending emails to customers who have already completed their purchase. This prevents confusion and ensures customers only receive relevant communications based on their current status.

Choosing the Right Trigger Events

Selecting appropriate trigger events determines which customer actions activate your flow. The most common triggers for abandoned cart emails include:

  • Added to Cart: Activates when a customer adds an item to their cart but doesn’t proceed to checkout
  • Started Checkout: Triggers when a customer begins the checkout process but doesn’t complete it
  • Viewed Product: Initiates when a customer views product details without taking further action
  • Abandoned Cart: Combines multiple signals to identify genuine cart abandonment patterns

Step-by-Step Guide to Building Your Dynamic Block

Creating an effective add-to-cart block requires careful planning and execution. First, navigate to your Klaviyo dashboard and locate the “Flows” tab to begin building your custom email sequence. Click “Create Flow” and select either “Build Your Own” for complete customization or choose from pre-built templates designed specifically for cart abandonment scenarios.

Name your flow descriptively to easily identify it among your other marketing automations. Under the “Select a trigger” option, choose “Your Metrics” to access the event-based triggers that will initiate your flow. For immediate response when customers add products, select “Added to Cart” as your trigger metric.

After establishing your flow’s foundation, add an email action by dragging the email element into your flow canvas. Click this element to open the email editor where you’ll design your message. Select a template that aligns with your brand aesthetics while providing sufficient space for product information.

The table block serves as the foundation for your product display. Drag this element into your email template to create a structured layout for showcasing product details. This versatile container allows for organized presentation of images, text, and buttons within a cohesive framework.

Configuring Your Block Settings Properly

Proper configuration ensures your block displays product information correctly. Click your table block to access its settings panel, then navigate to the “Styles” section where you’ll find display options. For “Added to Cart” events with single products, verify the “Data” setting shows “Static” rather than “Dynamic” to prevent cycling through non-existent multiple items.

Static configuration prevents common display errors where products fail to appear because the system attempts to iterate through an array that doesn’t exist. This adjustment ensures your product information displays reliably every time your email sends.

Table dimensions significantly impact your block’s appearance and effectiveness. Configure appropriate widths for product images and text columns to create balanced visual presentation. Mobile responsiveness requires special attention—set percentage-based widths rather than fixed pixels to ensure proper display across devices.

Color schemes and typography should align with your brand guidelines while maintaining excellent readability. Choose background colors that complement your product images without overwhelming them. Text colors should provide sufficient contrast for easy reading on all devices and screen settings.

Inserting Dynamic Product Details Correctly

Dynamic content tags connect your block to actual product information from customer events. Click the table cell where you want product information to appear, then open the “Source” view to access HTML editing capabilities. For product names in static blocks, insert tags like {{ event.extra.line_items.0.title }} that reference the first (and only) product in the event data.

Product images require proper formatting to display correctly. Insert image tags that reference the product’s image URL, such as {{ event.extra.line_items.0.product.images.0.src }}. Add appropriate alt text using the product name for accessibility and fallback display if images fail to load.

Price formatting demands special attention to ensure proper currency display. Use Klaviyo’s currency formatting tag to transform raw numbers into properly formatted prices: {% currency_format event.extra.line_items.0.variant_price %}. This ensures currency symbols appear correctly according to your store settings.

Call-to-action buttons should link directly to the product or cart page. Construct dynamic URLs by combining your store domain with product-specific information: {{ organization.url }}products/{{ event.extra.line_items.0.product.handle }}. This creates personalized links that take customers directly to relevant pages without additional navigation.

Customizing for Single-Product Events

Single-product events require specific approaches to display information effectively. Confirm your block uses static configuration without row collection or row alias settings, as these apply only to multi-product scenarios. Insert tag variables directly into table cells without iteration logic that would apply to multiple products.

Preview functionality helps verify your configuration before activation. Click “Preview & Test” in the editor to see how your email will appear with actual product data. This crucial step identifies any formatting issues or missing information before your flow goes live.

Static block structure typically follows this pattern:


      {{ event.extra.line_items.0.title }}
      {% currency_format event.extra.line_items.0.variant_price %}
      Return to Cart

Advanced Customization Techniques

Beyond basic implementation, advanced customizations enhance your block’s effectiveness and appearance. Fallback content provides insurance against missing data, ensuring your emails remain visually appealing even when specific variables contain no information. Enable fallback options within block settings and provide default text or images that display when primary content is unavailable.

Mobile optimization requires special consideration since most email opens occur on mobile devices. Set maximum image widths as percentages rather than fixed pixels to ensure proper scaling across screen sizes. Test your email on multiple devices to verify that layouts adapt appropriately without breaking or requiring horizontal scrolling.

Visual hierarchy guides attention to the most important elements of your product display. Use larger fonts and prominent positioning for product names and prices, with secondary information in smaller text. Call-to-action buttons should stand out through contrasting colors and clear, action-oriented text that motivates immediate response.

Personalization extends beyond product details to create truly individualized experiences. Include customer names in greetings and tailor messaging based on browsing history or previous purchases. This approach creates a sense of recognition that strengthens customer relationships and increases conversion likelihood.

Styling and Layout Best Practices

Effective styling creates visual appeal while maintaining focus on your products. Follow these guidelines for optimal results:

  • Maintain brand consistency: Use colors, fonts, and imagery that align with your overall brand identity
  • Prioritize readability: Ensure sufficient contrast between text and backgrounds for easy reading
  • Create visual hierarchy: Use size, color, and positioning to guide attention to key information
  • Limit distractions: Avoid cluttered layouts that compete with your product display

Error Handling and Troubleshooting

Even well-designed blocks occasionally encounter issues that require troubleshooting. Common problems include missing product information, formatting errors, and display inconsistencies across devices. Systematic troubleshooting helps identify and resolve these issues quickly.

First, verify your event data structure by examining sample events in Klaviyo’s analytics section. Confirm that product information appears correctly in the event data before attempting to display it in your email. Tag syntax must exactly match the data structure, including capitalization and punctuation.

Preview testing reveals many potential issues before deployment. Send test emails to yourself using different sample data to ensure your block handles various scenarios correctly. Check display on multiple devices and email clients to identify any platform-specific formatting problems.

If products fail to display, examine your block configuration carefully. Verify that static blocks are used for single-product events and dynamic blocks for multi-product scenarios. Check tag syntax against your event data structure to ensure perfect alignment between variables and data fields.

Testing and Optimization Strategies

Thorough testing ensures your add-to-cart block functions correctly before reaching customers. Create test scenarios that simulate different customer behaviors, such as adding single products, multiple products, or products with missing information. Send test emails to various email clients and devices to verify consistent display across platforms.

A/B testing reveals which design elements drive the best results. Create variations of your block with different layouts, images sizes, or call-to-action text. Divide your audience between these versions and track performance metrics to identify the most effective approach.

Performance monitoring provides ongoing insights for continuous improvement. Track key metrics including:

  1. Open rates that indicate email deliverability and subject line effectiveness
  2. Click-through rates that measure engagement with your product blocks
  3. Conversion rates that show how many recipients complete their purchases
  4. Revenue per email that quantifies the financial impact of your campaigns

Data analysis guides optimization efforts by revealing strengths and weaknesses in your current approach. Look for patterns in customer behavior to identify opportunities for improvement. Test hypotheses systematically to determine which changes produce meaningful results.

Maximizing Your Cart Recovery Success

Effective abandoned cart emails require more than just technical implementation. Strategic approaches to messaging, timing, and incentives dramatically impact recovery rates. Craft subject lines that create urgency without appearing desperate or spammy. Direct references to specific products often outperform generic abandoned cart messaging.

Email sequencing plays a crucial role in recovery effectiveness. Most successful flows include multiple messages sent at strategic intervals. Begin with a simple reminder shortly after abandonment, followed by more compelling messages that address potential objections or offer incentives for completing the purchase.

Psychological triggers increase conversion likelihood when applied thoughtfully. Scarcity messaging highlights limited availability that might motivate immediate action. Social proof demonstrates popularity through customer reviews or purchase statistics. Fear of missing out (FOMO) creates emotional urgency that overcomes purchase hesitation.

Incentives should escalate strategically throughout your flow. Early emails might simply remind customers about their cart, while later messages offer increasingly valuable incentives to complete the purchase. This approach maximizes revenue by avoiding unnecessary discounts for customers who would purchase without them.

Crafting Compelling Copy for Recovery Emails

Effective copy transforms technical implementations into persuasive communications. These guidelines help create messages that drive action:

  • Focus on benefits: Emphasize what customers gain by completing their purchase rather than just describing products
  • Address objections: Anticipate and overcome common purchase barriers like shipping costs or return policies
  • Create urgency: Highlight limited availability or time-sensitive offers that motivate immediate action
  • Maintain brand voice: Keep messaging consistent with your overall brand personality and communication style

Leveraging Dynamic Blocks for Business Growth

Dynamic add-to-cart blocks deliver immediate recovery benefits while supporting broader business objectives. These powerful elements provide valuable data about customer preferences and purchase patterns. Analyze which products appear most frequently in abandoned carts to identify potential issues with pricing, descriptions, or product features that might be causing hesitation.

Segmentation opportunities emerge from abandoned cart behavior. Create specialized flows for different customer segments based on cart value, product categories, or abandonment patterns. This targeted approach allows for customized messaging that addresses specific motivations and objections for each group.

Cross-selling opportunities arise naturally within abandoned cart emails. While maintaining focus on cart recovery, subtle product recommendations can introduce customers to complementary items that enhance their original selections. This approach increases average order value while providing additional value to customers.

Long-term customer relationship development begins with abandoned cart recovery. These emails represent opportunities to demonstrate your brand’s customer service commitment and attention to individual needs. Helpful, non-pushy recovery messages create positive impressions that extend beyond immediate purchase decisions.

Measuring and Reporting on Recovery Performance

Comprehensive measurement frameworks track both immediate and long-term impact. Key metrics to monitor include:

  • Recovery rate: Percentage of abandoned carts that convert to completed purchases
  • Average order value: Total purchase amount for recovered carts compared to regular purchases
  • Time to conversion: Duration between abandonment and completed purchase
  • Lifetime value impact: Long-term spending patterns of customers acquired through recovery efforts

Elevate Your Klaviyo Email Marketing Today

Dynamic add-to-cart blocks transform standard abandoned cart emails into powerful recovery tools that reconnect customers with products they’ve already shown interest in purchasing. By implementing these customized elements according to best practices, you’ll create personalized shopping experiences that significantly increase conversion rates and drive revenue growth.

The techniques covered in this guide extend beyond abandoned cart scenarios to enhance various aspects of your email marketing program. The same principles of personalization, dynamic content, and strategic messaging apply to browse abandonment, product recommendations, and post-purchase communications. This versatility makes mastering dynamic blocks a valuable skill for any ecommerce marketer.

Your implementation journey begins with understanding your specific event data structure and choosing appropriate block configurations. Static blocks excel for single-product events while dynamic blocks efficiently handle multiple items. Proper configuration ensures reliable display of product information that motivates customers to complete their purchases.

Start implementing these techniques today to transform your abandoned cart recovery program from basic reminders to compelling, personalized shopping experiences that drive meaningful results for your business. The combination of technical precision and strategic marketing approaches creates recovery emails that customers actually appreciate receiving—and more importantly, act upon.

Most Read Articles