Mayank Patel
Feb 9, 2024
5 min read
Last updated Feb 9, 2024

If you run an e-commerce website, you know how important it is to rank well on search engines and attract more customers to your online store. But did you know that the quality of your website’s user experience can also affect your SEO and conversions?
In this blog post, we will talk about Core Web Vitals, which are a set of metrics that measure the speed, interactivity, and visual stability of a webpage. We will also show you how improving these metrics can help your e-commerce website rank higher on Google, increase customer satisfaction, and boost sales.
Core Web Vitals are a subset of factors that Google uses to evaluate the page experience of a website. Page experience is how users perceive the experience of interacting with a web page beyond its pure information value. It includes factors such as mobile-friendliness, HTTPS, safe browsing, and lack of intrusive pop-ups.
Core Web Vitals are three metrics that reflect how users experience your site in terms of loading, interactivity, and stability. They are:
You can check your site’s Core Web Vitals data in the “enhancements” section of your Google Search Console account. You can also use tools like PageSpeed Insights, Lighthouse, or Chrome DevTools to measure and improve your Core Web Vitals.
Also read: A General Overview of Headless CMS
Google has announced that Core Web Vitals will be part of the page experience ranking factor, which means that they will affect how your website ranks on Google. This means that if your website has poor Core Web Vitals, it may lose its ranking position to a competitor that has better Core Web Vitals.
But ranking well on Google is not the only benefit of having good Core Web Vitals. Improving these metrics can also help your e-commerce website in several ways, such as:
When your website is fast, responsive, and stable, your customers will have a positive impression of your brand and products. They will be more likely to trust you, visit again, and purchase from you
When your website is slow, unresponsive, or unstable, your customers will get frustrated and leave your site. They will also spend less time on your site and view fewer pages. By improving your Core Web Vitals, you can reduce the bounce rate and increase the dwell time of your visitors, which can signal to Google that your site is relevant and valuable
When your website is optimized for Core Web Vitals, you can create a smooth and seamless shopping experience for your customers. You can eliminate any delays or distractions that might prevent them from completing their purchase. You can also enhance their confidence and trust in your products and services. This can lead to higher conversions and sales for your e-commerce website
Also read: Understanding the Google Lighthouse Score
Improving your Core Web Vitals for your e-commerce website may require some technical work and optimization, but it is not impossible. Here are some tips and best practices that you can follow to improve your Core Web Vitals:
Images are often the largest content element on a page, and they can affect your LCP and CLS. You should optimize your images by compressing them, resizing them, using responsive images, and using modern formats such as WebP or AVIF. You should also use lazy loading, which means that images are only loaded when they are in the user’s viewport
Your code, such as HTML, CSS, and JavaScript, can also affect your LCP and FID. You should minify and compress your code by removing any unnecessary or redundant characters, spaces, comments, or lines. You should also use tools such as Gzip or Brotli to reduce the size of your code files.
A CDN is a network of servers that deliver your website’s content to users based on their geographic location. This can reduce the time it takes for your website to load and improve your LCP and FID. You should use a CDN that supports your website’s features and offers fast and reliable performance.
Preloading and prefetching are techniques that allow you to load resources before they are needed by the user. This can improve your LCP and FID by reducing the waiting time for the browser to fetch and render the resources. You can use the <link rel="preload"> and <link rel="prefetch"> tags to specify which resources you want to preload or prefetch.
Layout shifts occur when elements on a page move or change size as the page loads. This can affect your CLS and create a poor user experience. You should avoid layout shifts by specifying the size and position of your elements, using CSS grid or flexbox for layout, and avoiding inserting content above existing content.
Also read: Future of Digital Commerce: How Headless eCommerce Can Scale Your Business
Core Web Vitals are a set of metrics that measure the user experience of a webpage. They are important for SEO e-commerce, as they can help your website rank higher on Google, increase customer satisfaction, and boost sales. You can improve your Core Web Vitals by optimizing your images, code, network, and layout.
If you are interested in improving your core web vitals for your e-commerce website. We are a Ecommerce Web Development Company that provides headless e-commerce development services for any e-commerce business. We can help you with optimizing your website for Core Web Vitals, as well as developing and deploying your e-commerce applications. We have the expertise and experience to handle any type of project and deliver high-quality results.

How Horizontal Integration Helps B2B Marketplaces Grow Faster and Smarter
What began as specialized, single-category platforms is now evolving into interconnected ecosystems where buyers can source everything they need in one place. Growth is about expanding smarter, creating value across categories, and leveraging data to power scale.
That’s where horizontal integration comes in. By expanding sideways into complementary markets or merging with peers operating at the same stage, B2B marketplaces can multiply their reach, accelerate growth, and create a richer experience for both buyers and sellers.
But achieving that kind of expansion doesn’t have to mean years of development, integrations, and tech complexity. With modern platforms like LinearCommerce, B2B businesses can launch, integrate, and scale horizontally faster than ever using prebuilt, plug-and-play systems designed for flexibility, and data intelligence.
Horizontal integration is a growth strategy where a company expands “sideways” by combining with another company or adding new lines that operate at the same stage of the business. In other words, a business merges with or acquires a peer (or expands internally) to offer more of what it already sells.
Unlike vertical integration (going up or down the supply chain into different stages, like a manufacturer buying a supplier), horizontal integration stays at the same level. For a B2B marketplace, this often means adding more product categories or services, or even merging with other marketplaces to widen the platform’s scope.
For example, Amazon began as a niche online bookstore but later expanded into selling everything, eventually launching Amazon Business to serve office supplies, industrial equipment, and beyond. Amazon’s evolution from a single-category store to an “everything marketplace” is a classic case of horizontal expansion.
Also Read: When Your B2B Ecommerce Site Doesn’t Talk to Your ERP
Horizontal integration can make a B2B marketplace grow faster by rapidly increasing its reach and market share. By expanding into new categories or joining forces with similar platforms, a marketplace can access more customers and markets overnight. This broader reach accelerates growth in several ways:
A horizontal B2B marketplace offers a diverse product selection. Buyers, in turn, draw even more sellers to the platform. It becomes a virtuous cycle: “More product offerings attract more customers, and a wider customer base attracts more sellers”. The result is exponential growth. A platform that started in, say, office supplies can grow much faster by also hosting sellers of machinery, chemicals, or food ingredients without starting from scratch.
By integrating horizontally, marketplaces reduce competition and capture a larger share of the B2B market. For instance, if two B2B platforms merge, the combined entity instantly gains all the buyers and sellers from both. This larger presence strengthens the marketplace’s brand and visibility. In practical terms, a bigger marketplace means any given seller has a bigger pool of potential buyers to sell to, which can translate to higher sales volume faster than if the market were fragmented.
A broader platform can operate more efficiently due to economies of scale. With more transactions and users, the marketplace can invest in better infrastructure and spread costs over larger volumes. This often enables faster innovation and rollout of new features. It also means the platform can scale up operations (adding new categories or geographies) more swiftly than a smaller, niche platform. For example, a horizontally integrated marketplace might consolidate warehouses or logistics for multiple product lines, speeding up delivery times for all. The net effect is faster growth not just in size, but in the quality of services.
Also Read: How Modern B2B Marketplaces Drive Sales Without Adding Complexity
Beyond just getting bigger, horizontal integration helps marketplaces grow smarter. With a broader base of operations, a marketplace can use more data, technology, and operational efficiencies which ultimately benefit both the platform and its sellers. Here’s how a horizontally integrated B2B marketplace becomes “smarter” and why that’s good news for you as a seller:
Shared Data & Insights
A large, multi-category platform generates a wealth of data on buyer behavior, market trends, and product performance across industries. When this data is pooled together, the marketplace can uncover insights that help everyone. In practice, this could mean the marketplace identifies a rising demand for a certain product and shares that trend with relevant sellers, or uses algorithms to match your products with the most likely buyers.
A broader marketplace may integrate services like logistics, warehousing, or payments across all its categories, often negotiating bulk rates. This can reduce the cost of fulfillment and platform fees per unit sold. For sellers, this might translate to lower customer acquisition costs (since the marketplace brings you more traffic organically), and potentially lower fees or better services as the platform optimizes its operations.
A horizontally diversified marketplace is often more resilient to market changes. Because it serves many industries, a slowdown in one sector can be balanced by demand in another. This stability allows the marketplace to continuously invest and innovate. Moreover, large marketplaces often pilot new programs (like financing options, insurance, or marketing programs) that you can take advantage of. For instance, a platform might use its data to offer a financing program for small sellers or introduce an AI-powered matchmaking service for business leads.
In B2B commerce, timing is everything and few moments have been as ripe for horizontal integration as today. The forces shaping digital trade aren’t just about growth anymore; they’re about adaptability, intelligence, and ecosystem control. Horizontal integration enables all three.
For decades, B2B buying has been fragmented. Buyers used multiple suppliers, portals, and distributors to meet their needs. But procurement is shifting from tactical purchasing to strategic sourcing, where efficiency, transparency, and predictability matter more than price alone. Horizontal integration allows marketplaces to become procurement ecosystems instead of product directories where buyers can source, compare, pay, and manage suppliers in one workflow.
Many B2B marketplaces have already dominated their initial verticals whether it’s office supplies, industrial tools, or packaging materials. But the marginal returns in a mature vertical diminish quickly. Expanding horizontally into adjacent categories isn’t just opportunistic; it’s strategic diversification that keeps growth compounding without diluting brand authority. The smartest players aren’t abandoning their niches; they’re building horizontally around them, creating adjacent offerings that turn transactional buyers into recurring visitors.
Scale is no longer measured only by GMV, it’s measured by data breadth and contextual intelligence. A horizontally integrated platform connects patterns across industries and buyer segments, allowing predictive insights (e.g., demand shifts, price elasticity, cross-sell opportunities). The more a marketplace integrates horizontally, the richer and more defensible its data becomes.
Consolidation is happening faster than innovation. Mergers, platform alliances, and category expansions are redefining who controls the buyer relationship. For smaller or specialized marketplaces, staying siloed means being at risk of becoming an integration partner rather than a market leader. Horizontal integration gives you the leverage not just through size, but through platform adjacency: owning multiple nodes of buyer attention and being able to connect them intelligently.
Global volatility has made resilience a boardroom metric. A horizontally integrated marketplace cushions itself against downturns in any single industry, supplier type, or demand cycle. It spreads operational risk while deepening overall platform stickiness.
Also Read: Do AI-Generated Product Descriptions Convert Better Than Humans?
By widening the scope of products, services, and partnerships, marketplaces create a richer ecosystem where everyone wins: the platform grows in size and intelligence, buyers get convenience and choice, and sellers (like you) get more opportunities with less friction.
In a space where timing and adaptability define success, LinearCommerce gives you the speed, scalability, and intelligence to build a marketplace that grows like the leaders without the multi-year tech investment.
Forget long development cycles. The team at LinearCommerce offers prebuilt marketplace themes from catalog management to payments, logistics, and analytics. You simply plug into our modular framework and launch in weeks, not months. This accelerates your go-to-market timeline while giving you the flexibility to expand horizontally later whether that means adding new categories, partners, or geographies.
Every module (catalog, pricing, logistics, CRM, analytics) is designed to scale across categories, so you can grow from a single vertical into a full-fledged multi-industry platform seamlessly. Our architecture enables you to integrate new suppliers, industries, and customer segments without re-engineering your core systems.
With LinearCommerce’s team, you don’t just get software; you get a growth partner. Our success team helps you design go-to-market strategies, onboard sellers efficiently, and use best practices from across industries. Whether you’re launching your first marketplace or expanding into your fifth category, we guide you through each stage of scale.
Mayank Patel
Oct 31, 20256 min read

Top 10 MedusaJS Plugins for Ecommerce Success
If you’re running an ecommerce store on MedusaJS, you already know it’s a beast; fast, flexible, and open-source. But the real magic is in the plugins. In this article, we’ll look at the top 10 MedusaJS plugins that can help you build a complete, production-ready ecommerce setup.
The plugins in this list aren’t just add-ons, they’re practical building blocks that solve real problems ecommerce teams face every day: handling payments securely, syncing product data, improving search performance, simplifying fulfillment, and personalizing communication.
Stripe is one of the most popular and developer-friendly payment platforms globally. For an ecommerce brand, offering a smooth checkout with credit cards and wallets is important for conversion. The official Medusa Stripe plugin makes this trivial to set up: you just add the Stripe provider in your medusa-config with your API keys. It’s highly scalable and secure, handling fraud prevention, PCI compliance, and multi-currency out of the box.
In Medusa v2, the Stripe plugin is included by default as a module provider; you enable it via configuration. It uses Stripe’s Node SDK under the hood and integrates with Medusa’s order workflows. Notably, you can configure options like capture (auto-capture payments or not) and utilize Stripe webhooks to handle asynchronous events (useful for things like SCA or when customers abandon the redirect flow). The plugin also supports advanced Stripe features; setting automatic_payment_methods: true lets Stripe automatically offer methods like Apple Pay if available.
PayPal remains one of the most widely used online payment methods, especially for international customers or those without credit cards. Enabling PayPal can significantly increase conversion by offering a familiar, trusted option. Offering PayPal can reduce cart abandonment (customers don’t need to enter card details if they have a PayPal account). Medusa’s plugin makes this integration straightforward, you install medusa-payment-paypal and configure your PayPal client ID/secret and webhook ID.
The plugin uses PayPal’s REST SDK. You’ll set environment variables for PayPal credentials and a webhook ID for asynchronous payment events. Medusa listens on a special endpoint (e.g. /paypal/hooks) for PayPal webhooks to handle cases where the user doesn’t return to the site after approval. The plugin supports both sandbox and live modes (PAYPAL_SANDBOX flag) for testing. By default, payments are authorized and then need manual capture (you can enable auto-capture via the capture option). Once configured, you enable PayPal in your Medusa Admin for the regions/currencies you want, after that, it’s available as a checkout option.
Also Read: How to Build Adaptive (Algorithmic Merchandising), Intent-Aware Ecommerce Storefronts
ShipStation is a shipping management platform that consolidates various carriers (UPS, FedEx, DHL, USPS, etc.) in one place. By connecting it to Medusa, you enable real-time shipping rate quotes at checkout from all your configured carriers and simplify order fulfillment. Customers can choose from multiple delivery options (e.g. standard vs express from different carriers) with prices fetched via ShipStation. On the backend, your team can seamlessly push orders to ShipStation for label printing and tracking.
This plugin provides strategic value by outsourcing rate calculation and label generation to ShipStation. It means you don’t have to manually integrate each carrier’s API or maintain complex shipping logic. For customers, showing accurate shipping options and costs improves transparency and conversion. For store operators, using ShipStation can reduce errors and fulfillment time since all orders flow into one system for processing.
Medusa’s Fulfillment module is designed to delegate fulfillment to providers like ShipStation. The plugin registers a fulfillment provider that communicates with ShipStation’s API. Technically, when an order is placed, the plugin can send order data to ShipStation; it can also fetch live rates during checkout by calling ShipStation’s rate API with package details. Configuration involves providing your ShipStation API key/secret and configuring webhook callbacks. The integration can be enabled/disabled per region or shipping option in Medusa Admin.
The Contentful plugin integrates Contentful, a popular headless CMS, with Medusa. This gives you rich content management capabilities (beyond product data) in your ecommerce application. By connecting Contentful, you can manage things like detailed product descriptions, long-form blog content, landing page sections, and localized content in Contentful’s user-friendly interface, and have that content synchronized to Medusa.
Most ecommerce brands need a CMS for marketing pages, editorial content, or richer product storytelling. Shopify has a basic CMS for pages/blogs, but it’s limited in structure. By using Contentful via Medusa, you can get the best of both worlds: a composable commerce stack where Medusa handles products/orders and Contentful handles content. This is strategically valuable for headless commerce setups, your frontend can pull product data from Medusa and seamlessly enrich it with content from Contentful (like lookbooks, size guides, translated descriptions, etc.).
The medusa-plugin-contentful package is installed in your Medusa backend and configured with your Contentful Space ID, Access Token, and environment. Under the hood, it sets up listeners for events (like product updates) and uses Contentful’s API to push/pull data. You must have matching content models in Contentful for Medusa’s entities (products, variants, regions, etc.). The plugin provides migration scripts to create these models in Contentful, or you can do it manually.
A clever aspect is the two-way sync: changes in Medusa (e.g., product price or stock) can update Contentful, and content changes in Contentful (e.g., a new product description) can be fetched into Medusa’s store. Redis is recommended for caching sync operations, and you can even map custom fields if your Contentful models use different field names. Essentially, Contentful becomes an extension of your product catalog and pages, with Medusa orchestrating the data flow.
Also Read: How Progressive Decoupling Modernizes Ecommerce Storefronts Without Full Replatforming
The Algolia integration connects Algolia, a hosted search engine, to Medusa for lightning-fast, typo-tolerant product search. With this integration, Medusa will index products (and/or other data) in an Algolia index, and your storefront can query Algolia’s API to retrieve results instantly as users type. Algolia provides an intuitive search-as-you-type experience with features like filtering, synonyms, and relevance tuning.
For any ecommerce store with more than a handful of products, a robust search function is key to conversion and user experience. Shoppers expect instant, relevant results. Algolia is a market leader in search performance, it can handle large catalogs with millisecond response times and comes with enterprise-grade features (analytics, personalization add-ons, etc.).
Using Algolia via plugin adds strategic value in terms of scalability (your search scales independently of your backend) and performance (offloading heavy search queries to Algolia’s infrastructure). It also frees your developers from building search algorithms from scratch. In short, this plugin helps Medusa-based stores match or exceed the search capabilities of Shopify (whose search is often cited as a weak point).
Currently, Medusa provides a guide to integrating Algolia (creating a custom module), and a community plugin exists for MeiliSearch (an open-source Algolia alternative). With Algolia, you’d install Algolia’s JavaScript client and create an Algolia Module in Medusa that hooks into product events. For example, you’d write subscribers to Medusa events (product created/updated/deleted) that trigger index updates in Algolia.
On the storefront side, you’d use Algolia’s InstantSearch or similar libraries to query the index. The division of labor is clear: Medusa ensures the Algolia index is kept up-to-date, and Algolia serves the search queries ultra-fast. This plugin/module approach keeps search queries from ever hitting your primary database, which improves scalability and performance under load.
The Segment plugin integrates Segment (Twilio Segment) as an analytics and customer data platform for your Medusa store. Segment acts as a centralized pipeline, it collects user and order events from Medusa and forwards them to various analytics, marketing, or data warehousing tools. With the Medusa Segment plugin enabled, key commerce events (order placed, shipment sent, product returned, etc.) are automatically tracked and sent to Segment. You can then configure Segment to push those events into tools like Google Analytics, Mixpanel, Facebook Ads, Mailchimp, Snowflake, or dozens of other destinations with no additional coding.
Segment provides a single API to send data to many services. For a CTO, this means you don’t have to instrument each tool separately, Medusa sends events to Segment, and from Segment you fan out to whichever platforms your marketing and BI teams need. This plugin is strategically valuable because it unlocks omni-channel insights: track a customer’s journey from browsing to purchase to return, and have that data in your CRM, email tool, and analytics dashboards seamlessly. For example, you could send purchase events to Google Analytics for reporting, to Facebook Pixel for ad attribution, and to a data warehouse for advanced analysis, all through the same event emitted by Medusa.
The medusa-plugin-segment is installed in your backend and typically requires a Segment write key for your source. Under the hood, it uses Medusa’s event bus: Medusa emits events for things like order.placed, and the Segment plugin listens to these and sends them to Segment’s HTTP API. By default, it tracks events such as order creation, shipment creation, returns, order cancellations, swaps, etc., covering the main commerce workflows.
The plugin configuration can filter which events to send or enrich event data as needed. One important aspect is reliability, using Segment’s server-side integration means events are recorded even if the user closes their browser (unlike purely frontend tracking). From a dependency standpoint, the plugin uses Segment’s Node library. Medusa’s modular nature means this plugin can hook into any custom events you define as well. Segment itself provides a free plan for small volumes, so you can start without heavy investment.
Also Read: Why MedusaJS is the Future of Headless Ecommerce
The Shopify Source plugin helps migrate and integrate with Shopify by syncing product data from a Shopify store into Medusa. This plugin is a bridge for those transitioning off of Shopify, it imports products (and possibly collections, images, etc.) from your Shopify account to Medusa’s database. It also sets up a scheduled job to continuously sync changes, so you can run Medusa in parallel with a live Shopify store during a replatforming period. Essentially, it “bootstraps” your Medusa backend with all your existing Shopify catalog data.
This plugin provides strategic value by dramatically lowering the switching cost. By keeping a sync job running, you can test Medusa in production while Shopify remains the source of truth, until you’re ready to cut over. It’s a great example of Medusa acting as a composable middleware layer, even before fully migrating, Medusa can sit between Shopify and other services to augment functionality.
The medusa-source-shopify plugin connects to Shopify’s Admin APIs. You create a Private App in Shopify with read access to products, then provide the app credentials (Shopify domain and API password) to the plugin config. When the plugin runs, it fetches all products, variants, etc., from Shopify and inserts them into Medusa’s database (mapping Shopify fields to Medusa’s schema).
It also registers a cron task (Medusa’s job scheduler) to periodically poll Shopify for changes or new products. This means if you add a new product in Shopify, it will appear in Medusa after the next sync run. The plugin focuses mainly on product catalog data (orders and customers are not typically synced, as those are better handled via a one-time import or different strategy).
The Wishlist plugin adds customer wishlisting capability to your Medusa store. This allows shoppers to save products they are interested in and revisit or share their wishlist later, a proven tactic to re-engage users and drive additional sales. Medusa’s wishlist plugin enables customers to create a personal wishlist, add or remove products, and even generate a shareable link (token) to send their wishlist to others.
For marketing, wishlists provide valuable intent data (which products are frequently saved) and an opportunity for retargeting (e.g., “Your wishlist item is back in stock/on sale” emails). By having an official plugin, Medusa makes this feature easy to implement, whereas on platforms like Shopify you’d typically need a third-party app.
The medusa-plugin-wishlist is an example of a plugin that extends Medusa’s core functionality without relying on an external service. Technically, it creates a new REST API endpoints on the Medusa server for wishlist operations (the plugin exposes four store endpoints for adding items, removing items, generating share tokens, and retrieving a wishlist by token).
Internally, it uses Medusa’s database, when a customer adds an item, the plugin stores it in the customer’s metadata as a list of line items. (It cleverly reuses the concept of line items, which makes it easy to eventually move a wishlist item to the cart.) The plugin also likely includes admin UI components (if enableUI is true) to view a customer’s wishlist in the Medusa Admin.
The shareable token feature works by generating a UUID that can be used to fetch the wishlist without authentication. Security for that endpoint is handled by using a token that doesn’t expose personal info, only the wishlist items and the customer’s first name. Implementation-wise, this plugin is mostly custom server logic showing Medusa’s extensibility (it doesn’t depend on an outside API).
The Product Reviews plugin (by Lambda Curry) brings a full product review and rating system to Medusa. This community plugin provides all the functionality needed for customers to leave 1–5 star ratings and write reviews on products, and for admins to moderate and respond to those reviews. On the storefront side, developers can display reviews and rating averages via the store API or directly from the plugin’s endpoints.
Product reviews and ratings are proven drivers of e-commerce success, they build social proof and trust. Customers almost expect to see reviews; absence of reviews can be a red flag. Instead of relying on an external service like Yotpo with recurring fees, you can host your own review system and own the data. Reviews data can further feed into marketing (e.g., average ratings in emails or ads) and product development feedback.
The reviews plugin is installed as @lambdacurry/medusa-product-reviews. It adds new database tables for reviews and uses Medusa’s entities/services architecture to link reviews to products and customers. Once installed and migrations are run, it automatically injects an Admin UI extension (using Medusa’s admin “injection zones”) that provides a full interface for review management.
Admins can approve or reject reviews (to filter spam or inappropriate content), and they can author official responses that appear beneath the customer’s comment. The admin UI shows an overview of all reviews with filtering by product or rating, and even displays average rating per product for quick insights. On the storefront side, the plugin doesn’t impose a specific UI, it’s headless. It provides APIs to submit a review (likely a POST to something like /store/products/{id}/reviews) and to fetch reviews for a product.
The Lambda Curry team also provided a Next.js storefront example demonstrating how to integrate the review submission and display. The plugin uses metadata on product or separate tables to store aggregate rating and count. This design mirrors the approach of Shopify apps but within your own database. As a result, you have full control: if you needed to integrate with a third-party NLP sentiment analysis or stream reviews to a marketing site, you could, since the data resides in your Medusa database.
The SendGrid plugin integrates Twilio SendGrid as a notification provider for sending transactional emails from Medusa. Medusa has a notifications module that can route messages (like order confirmations, password resets, shipping updates) to different channels (email, SMS, etc.). By installing the SendGrid provider, you configure Medusa to send all email-type notifications via SendGrid’s reliable email service. This covers common ecommerce emails: order confirmation receipts, shipping confirmation with tracking, account welcome emails, password reset links, and any custom notifications you create.
Email is the lifeblood of ecommerce communications. Using a dedicated email delivery service like SendGrid ensures high deliverability (your emails are less likely to end up in spam) and scalability (handle bursts during sales). While Medusa could send emails directly via SMTP, SendGrid offers templates, analytics, and proven infrastructure. Strategically, this plugin lets you separate concerns, your Medusa backend triggers notifications, but SendGrid handles the actual delivery.
It also allows marketers to update email templates in SendGrid’s UI without developer deployment. Compared to Shopify, which has built-in email templates that are somewhat rigid, using SendGrid via Medusa offers far more flexibility in design and content personalization. It’s also easier to support multiple brands or locales by using SendGrid’s template features, whereas Shopify’s handling of multi-language emails can be cumbersome.
The plugin (@medusajs/medusa/notification-sendgrid in Medusa v2) is configured by adding it to the Notification module’s providers list with an API key and a sender email. Medusa’s notification architecture uses “channels”, and you typically set SendGrid to handle the "email" channel. Only one provider can be attached to a channel, so if SendGrid is set for email, it will handle all emails.
The plugin does not require much code in your project; you mostly supply API credentials. Once active, whenever Medusa’s core or your custom code calls the NotificationService to send an email (with a template ID and data), the SendGrid provider executes. You use SendGrid transactional templates: in your SendGrid account you create email templates (for order confirmation, etc.) with placeholders, and you pass the template ID and data from Medusa. The documentation highlights that you must specify the template ID when triggering a notification.
This decouples presentation (email HTML content) from logic (Medusa just sends data like customer name, order items, etc.). On the Medusa side, you can trigger notifications via built-in events or manually via the Notification API. For example, Medusa might automatically send an “order.placed” email by default if configured. The plugin makes heavy use of Medusa’s event system and the OpenTelemetry instrumentation can even track email sends. The important part: no need to write low-level email-sending code, just configure and use Medusa’s high-level notification API.
Mayank Patel
Oct 30, 20255 min read

How to Build Adaptive (Algorithmic Merchandising), Intent-Aware Ecommerce Storefronts
Today’s shoppers expect storefronts that not only understand their intent but also adapt in real time. A new generation of adaptive, intent-aware storefronts combine ML, NLP, and dynamic merchandising to deliver the right product, to the right user, at the right time.
In this guide, we’ll explore what algorithmic merchandising and semantic understanding mean in practice, how they work together to create smarter ecommerce experiences, and how you can implement them using modern platforms like MedusaJS, Shopify, Magento, Algolia, and Recombee. These systems don’t just respond to behavior; they anticipate it, aligning every search, recommendation, and layout with the shopper’s true goals.
Merchandising involves selecting and organizing products on the “shelf” to maximize sales. You can think of end-cap displays or eye-level product placement for example. Algorithmic merchandising takes this a step further by using data and algorithms to decide which products to show, in what order, and to whom, all in real-time.
Key characteristics of algorithmic merchandising:
The system uses metrics like clicks, conversions, views, and sales to automatically re-order products. High-converting or relevant items are boosted to the top for each visitor or query.
As user behavior and inventory change, the algorithms adjust on the fly. If a trend emerges or stock levels shift, the storefront responds immediately. AI can crunch fresh data continuously to re-rank products and update assortments in real time.
Algorithmic systems can personalize what each user sees. They analyze browsing history, past purchases, and even micro-signals (like how long you hover on a product) to present items tailored to that user’s tastes and likelihood to buy. In practice, this might mean showing different “Featured Products” to a new visitor versus a returning loyal customer, or even individualized product sorting based on affinity.
Merchandisers can set high-level objectives or rules (e.g. “clear winter stock” or “promote high-margin items”), and the algorithms work within those parameters. Instead of manually pinning products on pages every day, the team defines goals and the AI figures out the best way to meet them (only requiring manual overrides for special campaigns or exceptions). For instance, you could tell the system to boost the visibility of clearance coats and new arrivals over a weekend, and it will adjust rankings accordingly.
Also Read: How Progressive Decoupling Modernizes Ecommerce Storefronts Without Full Replatforming
While algorithmic merchandising decides what to show, semantic understanding helps the platform decide why and when to show it. A semantic storefront is one that can interpret the meaning behind user actions and queries.
Semantic search is a prime example of this. Traditional ecommerce search is literal; it matches keywords in the query to keywords in products. In contrast, semantic search uses natural language processing (NLP), ontologies, and AI to grasp the intent and context behind a query, rather than just the exact keywords.
For instance, a search for “eco-friendly laptop bag” might turn up nothing in a keyword-based engine if products are labeled “sustainable office bag.” A semantic search engine would recognize that “eco-friendly” and “sustainable” convey the same intent in this context and find the relevant product.
Key aspects of semantic understanding in storefronts:
The system tries to infer what the shopper really wants. If someone searches for “running shoes under $100 for flat feet,” the semantic layer recognizes multiple facets: they want running shoes (product type), they have flat feet (condition/need), and a budget under $100. Instead of treating that as an odd long string of text, the engine parses it into meaningful criteria. Multi-attribute queries like these are interpreted in one go, so the results reflect all aspects of the request.
Semantic understanding uses context and domain knowledge. It knows that “NYC” means New York City, or that “sofa” is synonymous with “couch,” or that a user who just looked at maternity clothes might mean “dress for a baby shower” when they type “party dress.” This relies on techniques like knowledge graphs and entity recognition to map different words to the same underlying concepts. It’s why a good semantic engine can distinguish Apple (the company) from apple (the fruit) based on context.
A semantic storefront encourages users to interact naturally, even via voice. NLP algorithms allow the site to handle conversational queries or verbose descriptions. Shoppers can search in full sentences or ask questions (e.g. “Show me something I can wear to a summer wedding”) and get meaningful results. The semantic layer “decodes” natural language into attributes or filters the system can use.
Beyond query text, semantic understanding can include who the user is and what they’ve shown interest in before. For example, if a user consistently buys eco-friendly products, a semantic system might interpret a search for “shampoo” as likely meaning “eco-friendly shampoo” and prioritize those results. Or, as another example, a voice query like “show me winter jackets like the one I bought last year” can be resolved by blending that user’s purchase history with semantic matching to find similar items.
Also Read: What’s Really Slowing Down Your Product Pages
On their own, algorithmic merchandising and semantic search/understanding each provide value. But their real power is in combination, delivering a storefront experience that is both adaptive (algorithm-driven) and intent-aware (semantic-driven). Here’s why merging the two creates a cutting-edge shopping experience:
Semantic analysis can figure out what a shopper is looking for; algorithmic merchandising decides how best to show it. If semantic search determines that “smartphones with best camera under $500” means the user cares about camera quality and price, then algorithmic merchandising can immediately sort and filter products to match. In this example, the system might rank the phone listings by camera quality and automatically omit any above $500.
A semantic layer doesn’t just improve search queries, it can enrich all sorts of signals about user intent. Combine that with algorithmic decisioning, and you get a site that reconfigures itself for each user. For example, say a customer shows interest in sustainable fashion: the semantic system tags this intent (through their searches or behavior), and the merchandising algorithms might then automatically elevate eco-friendly products in category listings for that user. The storefront’s product ranking, recommendations, even content highlights adapt to the intent signals gleaned via the semantic layer.
An intent-aware, algorithmically-driven storefront can adapt not just product listings, but also navigation menus, banners, and content. For example, if semantic tracking shows a user is likely on a gift mission (perhaps they searched “gift for 5-year-old boy”), the homepage might dynamically feature a “Toys for Kids” banner or a gift guide when that user returns. Category pages might automatically sort by “most relevant for you” using what the system knows semantically about the shopper (seasonal relevance, demographic fit, etc.) combined with overall popularity.
Below, we outline practical steps and strategies, from data preparation to choosing platforms, with examples including MedusaJS, Shopify, Magento, Algolia, Recombee, and more.
The journey to intent-aware merchandising starts with being able to interpret user intent and product data semantically. Implementing a semantic layer means your system can take messy, human input and translate it into structured, actionable data (like filters, attributes, or search queries). Key strategies include:
Semantic understanding is only as good as your product data. Invest in a clean, rich product catalog. This means having standardized attributes (materials, colors, sizes, etc.) and tags for contextual info (e.g. style, occasion, audience). If your product metadata is thorough, the semantic engine has the “vocabulary” it needs to map user requests to actual products.
Many retailers find they need to enrich their catalogs, for instance, adding a “heel height” attribute for shoes if customers frequently search by that detail. Consider adopting or developing a consistent product ontology (a fancy term for a structured hierarchy and relationships of product attributes/values). For example, define that “evening wear” is a context that applies to certain clothing categories or that “hydrating” is a property of skincare products. This structured data forms the backbone of semantic search.
Instead of building semantic NLP capabilities from scratch, you can integrate specialized services. Algolia, for example, offers robust search APIs with semantic features (synonym matching, typo tolerance, AI re-ranking). There are also open-source options like MeiliSearch or ElasticSearch paired with plugins for synonyms/ML, but these might require more custom tuning.
If you’re using a headless platform like MedusaJS, integration is quite straightforward. Medusa’s modular architecture supports plugging in a third-party search engine through APIs or custom modules. This approach offloads the heavy NLP processing to a service that’s built for it. The semantic engine will handle things like natural language queries, entity recognition, and context.
Look for features such as: intent detection, support for multi-attribute queries, and learning from click feedback. Some ecommerce-focused search providers (e.g. Klevu, Typesense, Searchspring, etc.) also advertise semantic capabilities tailored to product catalogs.
Once a semantic search is in place, use the insights it generates. Analyze what people search for and don’t find (zero-result queries) and what they click. These insights can guide manual tuning or broader business decisions (like sourcing a product everyone is searching for).
Moreover, set up a feedback loop for continuous improvement: feed search data (queries, clicks, no-clicks) back into your machine learning models to refine synonym lists or ranking algorithms. Over time, this learning will make the semantic layer smarter, for example, learning new slang or trending terms (think “Barbiecore” suddenly becoming a thing). Regularly updating your synonym dictionary and adding new rules based on real customer language ensures your semantic understanding stays current.
With the semantic groundwork laid, focus on the algorithmic merchandising side. The components that will use data and rules to dynamically sort, recommend, and personalize. Strategies and tools here include:
A cornerstone of algorithmic merchandising is showing the right product to the right person. Consider integrating a recommendation engine like Recombee, Algolia Recommend, or similar services. These platforms use machine learning (collaborative filtering, content-based filtering, etc.) to suggest products based on user behavior and similarities.
For instance, Recombee is an API-driven personalization engine that can provide real-time recommendations (“related items”, “frequently bought together”, “recommended for you”) with sub-200ms latency. Such engines often combine user behavior data and product metadata. When hooked into your storefront, they can populate carousels like “You Might Like” or reorder product lists by predicted relevance.
Even simple personalization rules can yield gains, e.g., showing bestsellers to first-time visitors but tailored picks to returning users already familiar with your catalog. The key is to start leveraging user data you have (views, carts, past purchases) to influence what products get shown.
Instead of hard-coding “sort by popularity” or “sort by newest” across the board, use algorithms to decide the optimal sort order for each context. Many modern commerce platforms let you add custom sorting logic. For example, Shopify plus some app or custom code could use a score that weights both overall sales and user affinity.
Magento (Adobe Commerce) has built-in personalization for category and search results via Adobe Sensei. It can automatically learn and reorder products on category pages for each user (or segment) to maximize relevance. When implementing dynamic sorting, consider a hybrid approach: a baseline relevance (perhaps by text match or category ranking) then a personalization boost. The semantic layer can provide the relevance baseline (matching the query intent), and the algorithmic layer applies personalization boosts (e.g., if we know User A tends to buy brand X, bump those up in the results for them).
Most businesses will want a balance between automated algorithms and strategic rules. Use a merchandising rule engine to set up conditions like “If inventory of item is overstocked and season is almost over, automatically demote its rank unless on sale” or “If user came via an ad for Brand X, prioritize Brand X products in results.” These rule engines can be part of your search tool (Algolia, for example, allows “business rules” to pin or boost items under certain conditions) or your ecommerce platform.
AI-based orchestration means the system can handle many of these on its own (e.g., automatically start promoting winter coats in February to clear inventory). But it's wise to have a user-friendly interface for your team to inject business logic when needed. Many AI merchandising solutions (like Fast Simon or Bloomreach) offer a dashboard for merchandisers to override or fine-tune AI outcomes.
To enable on-the-fly adaptations, make sure you’re capturing user events and feeding them into your algorithms quickly. This might involve client-side scripts or back-end events for product views, adds to cart, purchases, search queries, etc. Platforms like Shopify have apps and APIs (e.g. Rebuy, or Shopify’s built-in recommendation logic) to gather such data.
Headless setups like MedusaJS let you create event subscribers or use middleware to capture events and send to your AI services. For example, Medusa can emit events on product creation or update, which you can use to trigger a re-index in Algolia. Similarly, capturing user interaction events and sending them to a personalization service ensures your recommendations and rankings update with each click (some systems even update session recommendations in real-time after a single view or add-to-cart).
The implementation will differ depending on your technology stack. Let’s break down how this might look on a few common platforms and architectures:
Medusa is an open-source headless commerce framework known for its flexibility. With Medusa, you have full control over the backend and can integrate third-party services via custom modules. For instance, to add semantic search and algorithmic merchandising, you could integrate Algolia for search (as per Medusa’s official guide) and perhaps a recommendation service (by writing a module to call an API like Recombee or building your own ML service).
Medusa’s architecture is API-first, which is ideal for this, you index products in Algolia for search, and perhaps sync events to a personalization engine. The storefront (e.g. a Next.js front-end consuming Medusa's API) then queries Algolia for search/autocomplete and queries the recommendation API for personalized sections. We’ve found that headless setups like MedusaJS excel in enabling these advanced features: you can swap in best-of-breed search or AI services without fighting a monolithic system’s constraints.
Shopify stores (especially on Shopify Plus) can achieve a lot of this with apps and a bit of custom code. Shopify’s ecosystem offers apps like Boost AI Search & Discovery or Fast Simon which plug in semantic search and AI merchandising features. Shopify also has a native “Search & Discovery” app by Shopify for managing synonyms, filters, etc., and recently they've been adding AI capabilities (like a built-in recommendation engine and some NLP for search).
A Shopify app like Boost (mentioned above) uses NLP to understand search queries and even provides personalized product recommendations along with search results. Integration on Shopify usually means the app will index your products and serve a custom search results widget or replace the search API. For recommendations, apps like Rebuy or Shopify’s native recommendations can display “related items” and personalized carousels.
Liquid (Shopify’s templating language) plus JavaScript can be used to insert dynamic sections that call out to these AI services. So while Shopify is not as open as headless, it still allows injection of these intelligent features via its app platform. The key for a Shopify merchant is choosing the right app stack and ensuring all the pieces (search, recs, etc.) are configured to share data (often the apps handle this via Shopify’s analytics or their own tracking snippet).
Magento, now Adobe Commerce, has robust built-in capabilities for both search and merchandising. It uses Elasticsearch (or OpenSearch) for search, which supports synonym dictionaries and some fuzzy matching, though out-of-the-box it might require tuning for true “semantic” feel. However, Adobe Commerce offers Adobe Sensei-powered Product Recommendations and Live Search (in cloud editions). Sensei (Adobe’s AI) can automatically generate recommendation units like “Recommended for you,” “Trending Products,” “Customers also viewed,” etc., by analyzing user behavior across the site.
These appear as content blocks you can slot into pages, and they update for each user. Magento’s Page Builder and merchandising tools also allow setting up rules for category product sorting (like boosting certain attributes or stock). For search, Adobe’s newer Live Search uses AI to improve relevance (though it was in flux after some product changes, but the idea is to incorporate NLP). There are Magento extensions for Algolia, or one could use Recombee’s API in a custom module for recommendations if more control is needed. The platform’s flexibility means you can override search results or recommendation logic, but using the built-in Sensei might be the fastest route if you’re already on Adobe Commerce.
For those building a custom headless solution (perhaps using a combination of a frontend framework, custom backend, and microservices), the strategy is to compose multiple specialized services. For example, you might use ElasticSearch or Typesense for search indexing, combined with a vector search service (like Vespa or an LLM-based service) for semantic query understanding.
You could use an open-source recommender system or an ML model you host on AWS (Amazon Personalize is an option too). The challenge in custom setups is orchestrating data flow, e.g., ensuring your product catalog updates propagate to the search index and your user event pipeline flows into the recommendation model training.
However, the benefit is ultimate flexibility: you could implement a truly bespoke semantic layer (maybe using a language model to parse queries) and a custom ranking algorithm that weighs business goals. Middleware or an API gateway can unify these: your frontend calls one API endpoint, and your backend then calls the search service, then re-ranks or filters results via your ML models, etc., before returning to frontend.
Also Read: When Your B2B Ecommerce Site Doesn’t Talk to Your ERP
As data pipelines, APIs, and AI services continue to mature, the real differentiator will be orchestration: how seamlessly you align these components to serve intent, adapt to change, and keep learning. The brands that master this synthesis won’t just stay competitive; they’ll define what modern digital commerce should feel like.
Mayank Patel
Oct 29, 20257 min read