Note: InkSoft does not provide technical support for third party products, including Google Tag Manager. Instructions and training for Google Tag Manager can be found here. Please consult these guides BEFORE enabling.
Before we get started, if you haven't connected your Google Tag Manager account with your InkSoft account, please refer to our guide "Setting Up Google Tag Manager" here before continuing.
The new stores platform was built with the Google Tag Manager Enhanced E-commerce Actions in mind, and this guide will show you how to take advantage of these actions, and start recording web traffic throughout your store.
The actions listed below signal when a GTM trigger should fire:
- detail - When a customer goes to the product details page
- addToCart - When the customer adds a product to the cart
- removeFromCart - When the customer removes a product from the cart
- checkout - The customer begins the checkout process going from cart to checkout
- purchase - The customer completed an order
A trigger will signal when a Tag should fire or not, depending on the conditions of that trigger. Most of the triggers are actually setup the same, with the only difference being the condition on when the trigger is fired.
General Setup of a Trigger Using Our Actions
- Trigger type: Custom Event
- Event name: Enter in one of the Events shown in the previous step.
- This trigger fires on: Select Some Custom Events
- Fire this trigger...: Select Event for the first dropdown, select equals in the second dropdown, and enter in one of the Events shown in the previous step.
Tags collect data from the page the trigger fires on, and sends that data to Google Analytics. Most of this will just be recording the traffic throughout the store, but it can also retrieve order data as well.
- Track Type: Select Event.
- Event Tracking Parameters: This is optional but you can enter in your own labels to help organize data going into Google Analytics. Category, Action, Label, and Value are different ways you can have your data organized.
- Enable overriding settings in this tag: Check this option so you can enter the Google Analytics ID
- Tracking ID: Enter in the Google Analytics Id you want to send the data to.
Note: Be sure you set your Google Analytics Tracking ID on each Tag
How it Looks in Google Analytics
To navigate to the Events section of Google Analytics click Behavior > Events. From there you will see the Events Overview with the data collected from your tags.
- If you entered anything for the Event Tracking Parameters shown above, it will show here.
Getting Order Data From the Purchase Event (Advanced)
If you would like order data (product names, order total, order number, etc.), update your tag that's associated with the purchase event. In this example, it's the Completed Order tag I created. When creating/editing this tag:
- Click More Settings
- Click E-commerce
- Select True for Enable Enhanced E-commerce Features
- Check the Use Data Layer box
- Save and Publish
Viewing Order Information in Google Analytics (Advanced)
To navigate to the Events section of Google Analytics click Conversions > Overview.
Route Change Trigger (Optional)
Using the History Change trigger type will allow you to record the customer's movement throughout the entire site. So whenever the customer goes to a different page, this tag will fire. The next example will show this trigger attached to a tag.
Route Change Tag (Optional)
The tag is set up just like the other tags, but in this example, I have a new category "Route Change" to help organize the data coming into analytics.