The following articles explains how you can add our integration scripts using Google Tag Manager. This is a medium to expert level article so we assume you have experience using Tagmanager, as we won’t go into details.
Also this is an example of integration, feel free to adapt it to your site.
The names for tags, triggers and variables we are using below can be changed after your preferences.
Those are events that trigger our code to run. When visiting a webpage there are many “events” that happen without a user noticing those.
VTDomReady -> You will need a trigger based on DOM Ready event type, to run on all pages.
VTMainPixel -> This will load the main script. Select a Custom HTML Tag and copy paste the code there.
Instead of relying on hardcoded values inside our tags, it’s better to use variables. Most common variables are the values used along with events: item id, category, search query, items from cart, cart value, cart # of items