1. Install BigCommerce app. Click Get this app → log in to your BigCommerce account → Install.
2. Then, you need to complete the settings parameters in three tabs: General, Data Layer, and Webhooks.
2.1 General tab
Here, you need to add the following data:
- GTM Web container ID - add the ID of Web container in the format GTM-XXXXXXX. You can find it in your GTM account in the tab “Accounts”. Click “Insert GTM snippet” to automatically add the snippet with JavaScript code to every page on your website.
- Custom domain - use your subdomain created for first-party cookies for the most precise tracking.
Add row aboveAdd row belowDelete rowAdd column to leftAdd column to rightDelete columnIf you haven’t created a subdomain yet, please see our guide on adding a custom domain to sGTM container.
- Custom loader - this feature will help increase protection against ad blockers, resulting in better data quality. Add in the field Stape container identifier. Check this quick guide to find your container identifier.
- Cookie keeper - it helps prolong the cookies' lifetime by bypassing the browsers’ restrictions.
After setting all the necessary fields, click “Save”.
2.2 Data Layer tab
In this tab, you can add two points to the settings:
- Add ecommerce Data Layer events - it will add standard Data Layer, based on them you can configure tracking in GTM container.
- Add user data to Data Layer events - with this feature, events will include user data. You can configure the data you want to collect from your website visitors in the GTM container.
Click “Save”.
2.3 Webhooks tab
The webhooks feature will be handy if you want to track events outside your website, such as sales made by phone or in offline stores. You just add or update information on a user in CRM or CMS, and the webhook sends data in GTM.
To activate a webhook, you need to choose the type of webhook, “Purchase” or “Refund” (or both), and then you can click on “Send webhooks to server GTM container”. Then, add your GTM server container URL (the path where the webhook will be sent).
Click “Save”.
Note: If you encounter problems setting webhooks, see our blog post on debugging incoming webhooks in GTM server preview.
Comments
0 comments
Please sign in to leave a comment.