Magento 2
  • Personalization for Magento 2
  • Installing
  • Disconnecting
  • Uninstalling
  • Getting Started
  • Configuring
  • Hyvä Theme
  • Guides
    • Migrating to Magento2
    • Upgrading to >= 4.0.0
    • Varnish & Full-Page Caches
    • Advanced User Guide
    • Managing Blocks
    • Overriding or Extending Functionalities
      • Overriding Product Data
        • Excluding Products
        • Customising Pricing
        • Customising Categories
        • Resizing Images
      • Overriding Customer Data
    • Console Commands
    • Tagging Providers
  • Features
    • Product data caching
      • Built-in caching
      • Database caching
    • Variations (Configurable Products)
    • Add to Cart
    • Indexer
      • On 7.x
      • On 5.x and 6.x
      • On 4.x
      • On 3.x
    • Customer Group Pricing
    • Supplier Cost & Inventory Level
    • Restore Cart Link
    • Ratings & Reviews
    • Multi Currency (Exchange Rates)
    • Marketing permission and GDPR compatibility
    • Content Staging & Special Prices
  • Integrations
    • Using Yotpo
  • FAQ
  • Developing & Contributing
  • Visit Nosto
  • Issues
  • Releases
  • Addons
    • Multi Source Inventory (MSI)
      • Installing
      • Uninstalling
      • Configuring
    • Category Merchandising (CM 1.0)
      • Installing
      • Uninstalling
      • Configuring
      • Guides
        • Translating Frontend Strings
        • PWA Implementation
        • Using Elasticsearch
        • Segmentation
        • Overriding or Extending Functionalities
          • Customize Query Parameters
          • Customize Page Size Limit
          • Customize Exclude Filters
        • Debugging
Powered by GitBook
On this page

Was this helpful?

  1. Addons
  2. Category Merchandising (CM 1.0)
  3. Guides

Segmentation

PreviousUsing ElasticsearchNextOverriding or Extending Functionalities

Last updated 1 year ago

Was this helpful?

Nosto offers the possibility to deliver category merchandising based on different segments. The segments can be .

One challenge to deliver segmentation is to overcome the Magento cache so different segments will not be served the same sorting. The segmentation logic is handled by the Nosto client script. Nosto's CMP module will append nosto-cmp-mapping block which contains a map of category urls and hashes. This will be used as a mechanism to generate different cached versions based on segments.

The client script will append a query parameter to the category url like example.com/category?key=xyz. Each segment will have its own key value and the value is defined by Nosto. Magento will generate a new cached version of the category page based on the url parameters when a user lands on the page (in case the cached version is missing for the specific segment). Users within the same segment will be served the same cached segment sorting.

Category Mapping Cache

Building the category map might become a slow operation. Our module introduces a dedicated cache to store the mapping. The cache is named nosto_category_mapping_cache.

To enable the cache just run the magento command:

bin/magento cache:enable nosto_category_mapping_cache
configured in Nosto