Articles in this section
Category / Section

Install Website Tracking with BigCommerce

Create a webhook to send data to your server

To create a webhook to send data to your server:

  1. Go to Settings › API in your B2B Ninja dashboard.
  2. In the Webhooks section, check the box for the event you want (e.g., Quote - Created).
  3. Enter your server’s URL (must start with https://).
  4. Optionally, set a Webhook Secret for added security.
  5. Click Apply to save your webhook settings.

Click this link for source information

Activate the dataLayer

To activate the dataLayer in your BigCommerce store:

  1. Go to Settings › Data solutions.
  2. Click Show advanced settings.
  3. Check the box to Turn on the data layer.
  4. 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.

  1. Go to Storefront › Script Manager in your control panel.
  2. Click Create a Script.
  3. For Placement, select Header.
  4. Choose the pages where the script should run.
  5. Paste your script and save.
  6. 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.

Comments (0)
Access denied
Access denied