sauce-bigcommerce-snippet
v1.0.3
Published
The Sauce data layer snippet for Bigcommerce.
Readme
Sauce-Bigcommerce HTML snippet
The main theme snippet for the Sauce-Bigcommerce integration. Exposes data about the page to Sauce's JavaScript tracking, following the data layer schema where possible.
## Installation
This snippet should not be installed directly to your theme, you'll be able to get the code with your populated client id within the Sauce dashboard.
Module usage
This snippet can also be required in as an NPM module:
Install the module with npm install sauce-bigcommerce-snippet
Provide the clientId to the snippet:
var snippet = require('sauce-bigcommerce-snippet');
var html = snippet({
clientId: '123'
});
// => `html` is the final code## License
This extension is released under Apache License 2.0.
