Install Website Tracking with BigCommerce
Create a webhook to send data to your server
To create a webhook to send data to your server:
- Go to Settings › API in your B2B Ninja dashboard.
- In the Webhooks section, check the box for the event you want (e.g., Quote - Created).
- Enter your server’s URL (must start with https://).
- Your specific URL is found under the Webhook tab in your Tracklution container.
- Sending data to Tracklution with webhooks
- Optionally, set a Webhook Secret for added security.
- Click Apply to save your webhook settings.
Click this link for source information
Activate the dataLayer
To activate the dataLayer in your BigCommerce store:
- Go to Settings › Data solutions.
- Click Show advanced settings.
- Check the box to Turn on the data layer.
- This enables the dataLayer for all associated storefronts by default.
Click this link for source information
Add the script to the head-section of all pages
Add a script to the head section of all pages using Script Manager.
- Go to Storefront › Script Manager in your control panel.
- Click Create a Script.
- For Placement, select Header.
- Choose the pages where the script should run.
- Paste your script and save.
- This injects your script into the head section of the selected pages.
Click this link for source information
Start tracking
You are now able to let events accumulate from your BigCommerce website, or alternatively go to the website yourself and perform each event you want to track at least once, and the events will start to populate under the Magic tab in your Tracklution container. Toggle 'ON' each event you want to track. Click here for more information about Magic. Webhook events are already flowing to your Tracklution container and will apply to your dashboard accordingly. To see received data from webhooks, open the Webhook tab in your Tracklution container.
If you want to track special custom events, then you can combine this setup with a tag manager, for example by using the GTM template for Google Tag Manager. Since dataLayer is now active, you can now utilize it to create you special conditions and custom events.
If you have any problems tracking the events, make sure to configure DNS.