Skip to main content
Layers uses sample search data to seed your store with relevant query information. You export this data from Shopify using a ShopifyQL query and send the results to Layers Support.

Prerequisites

  • You have a Shopify store with Layers installed.
  • You have access to Shopify Analytics in your Shopify admin.

Export your top searches

  1. In your Shopify admin, navigate to Analytics > Reports.
  2. Open the ShopifyQL editor and run the following query to export the top searches from the past 60 days:
    FROM searches
      SHOW searches
      GROUP BY search_query, day WITH CURRENCY 'USD', TOTALS
      TIMESERIES day
      SINCE startOfDay(-60d) UNTIL today
      ORDER BY searches DESC
      LIMIT 1000
    VISUALIZE searches TYPE horizontal_bar
    
  3. Export the results as JSONL. screenshot of export as JSONL

Send the export to Layers Support

Send the exported JSONL file to Layers Support. The team imports this data into your store to seed search analytics and relevance tuning.

Next Steps

  • Return to the Demo Store Setup guide to complete your store configuration.
  • Learn more about how Layers uses search data in Metrics.

Troubleshooting

If you are unable to run the ShopifyQL query or export the results, make sure you have the required permissions in your Shopify admin. Contact support if you need help.