Google Tag Manager enables you to manage tracking scripts for a single or multiple pages via a centralized admin panel.
Tag Manager is in principle intended for specialist professional use
If you'd like to enable Google Analytics via Tag Manager, first disable the Google Analytics extension in your online store.
You may want to enable Google Tag Manager if your online store uses multiple tracking services that should be used in different ways in different versions, for example.
For more information about Google Tag Manager, see our website ›
See also Tag Manager's help center.
Pricing
Using the service is free of charge. A paid version of the service is also available. Read more.
Installation and activation
Extensions are not available in MyCashflow Free plan.
First, create a Tag Manager account.
Tag Manager is now enabled, and you can start adding new tracking tags in Tag Manager's admin panel.
For more information about managing tags, see Google's instructions. Below, you can find examples that illustrate how to add some of the most common tracking tags.
Adding tracking scripts via Tag Manager – examples
The examples below illustrate how to add the most common tracking services to your online store by using Google Tag Manager.
If your online store uses multiple tracking scripts, you may want to use Google Tag Manager. Managing and adding scripts is easier by using Google Tag Manager rather than by editing the store theme's HTML files.
Google Analytics
MyCashflow provides a Google Analytics extension, but it is also possible to setup the service via Tag Manager (this is advisable if your online store uses multiple tracking scripts).
To enable Google Analytics:
- Add the GA tracking ID to the Tag Manager variable
- Create a tracking tag
- Add the GA tracking ID to the tracking tag
- Define a trigger for the tracking tag
- Enable Enhanced Ecommerce tracking (optional)
Also make sure that MyCashflow's Google Analytics extension isn't enabled in your online store before enabling Analytics via Tag Manager.
See the detailed descriptions below for installation stages:
The tracking tag is now ready to use, but it still needs to be published. Before publishing it, you can test it by using Tag Manager's Preview functionality.
Once you're ready to enable the tracking tag in your online store, in the upper right corner, first click
and then .Using separate Google Analytics accounts in different versions
In some cases, you might want to use different Google Analytics accounts in different store versions or disable Analytics in some other versions.
The same process can be applied e.g. to Facebook pixels and other similar tracking services.
Now, the conversion table applies to visitors the correct GA tracking account based on the domain.
Next, add the conversion table to Google Analytics settings, and create a new tracking tag to use with the settings:
Adservice remarketing
This example illustrates how to add Adservice's HTML tracking script to an online store. You can also add many other, common tracking scripts to your online store by following these instructions (e.g. Sanoma's remarketing tags).
The Adservice tracking script will from now on be loaded onto each page of your online store.
Next you can also add Adservice's conversion tracking to your online store. Tracking is performed only when a customer confirms their order.
Adservice's conversion tracking
This example illustrates how to add the Adservice conversion tracking script for tracking orders that are finalized in your online store.
The example uses Google's data layer variables with which order details are transferred to Adservice (for example, total, order number, currency, etc.).
Create separate variables for all details that are required by the tracking service.
After defining the required variables, create a new tracking tag for conversion tracking:
The tracking tag is now ready to use, but it still needs to be published. Before publishing it, you can test it by using Tag Manager's Preview functionality.
Once you're ready to enable the tracking tag in your online store, in the upper right corner, first click
and then .MyCashflow's data layer
The implementation of the data layer in MyCashflow contains the following details that are sent to Tag Manager during page load:
General and store details
- Page type (e.g. product, product category, etc.) (CurrentPageType)
- For search pages, the search term used is sent as well.
- Page URL (CanonicalUrl)
- Store address (ShopUrl)
- Version language (ShopLanguage)
Customer groups
- Customer email (CustomerEmail)
- Customer full name (CustomerName)
- Customer first name and surname (CustomerFirstName, CustomerLastName)
- Customer company (CustomerCompany)
- Customer phone number (CustomerPhone)
- Customer postal code (CustomerZip)
- Customer city (CustomerCity)
- Customer country (CustomerCountry)
- Customer ID (UserId)
Products
- Product ID (ProductID)
- Product price (ProductPrice)
- Product name (ProductName)
- Product's default product category name (ProductCategoryName)
- Product lists on which the product is displayed (ecommerce.detail.impressions.list)
- Product lists are named according to Interface tags used for printing the lists in the store theme.
Shopping cart details
Shopping cart details are available only on checkout pages.
- Shopping cart's order total (CartTotal)
- Shopping cart's discounts (CartDiscounts)
- Shopping cart's shipping costs (CartShippingCosts)
- Based on the first available shipping method if none selected.
- Shopping cart's payment fee (CartPaymentCosts)
- Shopping cart’s product quantity (CartTotalItems)
- Shopping cart products (ecommerce.products)
Order details
- Order number (OrderNumber)
- Order total (OrderTotal)
- Order tax amount (OrderTax)
- Order total excluding tax (OrderWithoutTax)
- Order discounts (OrderDiscount)
- Order currency (OrderCurrency)
- Discount coupon used for the order (OrderCouponCode)
- Order product details (ecommerce.purchase.products)
Banners
Banners include information about the lists they were displayed on.