Shopify liquid snippet
The main theme snippet for the Sauce-Shopify integration. Exposes the key data about all pages of your theme following the Sauce data layer schema.
Installation
This snippet should not be installed directly to your theme, it is automatically added when you install Sauce.
Module usage
This snippet can also be required in as an NPM module:
- Install the module with
npm install sauce-shopify-snippet
- Provide the
clientId
to the snippet:
var snippet = require('sauce-shopify-snippet');
var html = snippet({
clientId: '123'
});
// => `html` is the final code
License
This extension is released under Apache License 2.0.