On Shopify and Shopify Plus the application creates, modifies and if needed removes collections to match the configurations done within Category Merchandsing. 

Learn more about Sequencing on Shopify here: Sequencing on Shopify and Shopify Plus

Add the Conditional Canonical URL to theme.liquid

The collection templates need to have the canonical url indicating duplicate content to search engines. Failing to do this step might have negative SEO implications for the web shop and is not recommended. 

Read more about the SEO implications on Shopify here: Shopify Sequencing and SEO

Replace this default canonical tag from Shopify: 

<link rel="canonical" href="{{ canonical_url }}">

With the conditional function to add the canonical URL to Nosto generated category pages: 

{% if product == blank and collection and collection.metafields.nosto != blank %}
  <link rel="canonical" href="{{shop.url}}/collections/{{collection.metafields.nosto.sourceHandle}}">
{% else %}
  <link rel="canonical" href="{{ canonical_url }}">
{% endif %}

Adding a conditional function to filter out Nosto collections

Default Shopify stores for example rely on templates/list-collections.liquid to create box-style category listing used for example on the main collection page. When using similar kinds of functions that will loop out all collections, the Nosto generated clone collections need to be filtered out from the template. 

Replace this default list-collections function: 

  <div class="grid grid--uniform">
    {% for collection in collections %}
        <div class="grid__item small--one-half medium-up--one-third">
          {% include 'collection-grid-item' %}
        </div>
    {% endfor %}
  </div>

With exactly the same function, excluding collections with the Nosto metafield applied:

  <div class="grid grid--uniform">
    {% for collection in collections %}

      {% if collection.metafields.nosto == blank %}
        <div class="grid__item small--one-half medium-up--one-third">
          {% include 'collection-grid-item' %}
        </div>
      {% endif %}  
 
    {% endfor %}
  </div>

Adding a conditional function to use original collection image. 

In some cases you might have a collection page where the collection image is used prominently as a "hero" in the top of the page. In these cases you will need to add a conditional to use the original image collection image if a Nosto clone collection is referenced. 

{% if product == blank and collection and collection.metafields.nosto != blank %}
  {{collections[collection.metafields.nosto.sourceHandle].image.src}}
{% else %}
  {{collection.image.src}}
{% endif %}

Did this answer your question?