This is part of our advanced Segmented Merchandising feature.
Searchspring will need to know on every page load which segment is currently applicable in order for Segmented Merchandising to work properly.
The segment tag should dynamically passed like so, with the highlighted portion replaced with the tag. Please remember to keep the rest of this code in-tact, only adding the last section that adds the tag.
<script src="//cdn.searchspring.net/search/v3/js/searchspring.catalog.js?YOURSITEID" tag='[ "merch.segment/yourtaghere" ]'></script>
Tags must always be:
- Include only letters, numbers, and hyphens.
- Underscores and other special characters are not allowed
Otherwise, they will not fire correctly.
Want to track it for reporting as well?
Currently, Searchspring does not yet offer direct reporting to reflect segmentation in merchandising. If you would like to track the performance between the different segments you are merchandising, you can easily do so by sending your segment tags to Google Analytics at the same time you send them to Searchspring. Read more here »