chameleon-system-private/google-tag-manager-shop-bundle

8.47.1 2025-12-15 13:56 UTC

README

Bundle adds e-commerce data to the base implementation of the GoogleTagManagerBundle.

Setup

Follow this step by step guide to set up GoogleTagManagerShop.

Prerequisites

For standard prerequisites, see the Readme file in the GoogleTagManagerBundle.

Install Bundle

In the project's composer.json, require chameleon-system/google-tag-manager-shop-bundle in the version that matches the Chameleon version used and run composer update.

Add ChameleonSystem\GoogleTagManagerShopBundle\ChameleonSystemGoogleTagManagerShopBundle() to the AppKernel.

Run CMS updates.

Configuration

For standard configuration, see the Readme file in the GoogleTagManagerBundle.

To enable product list click tracking set enableProductClickTracking to true in the config. Product list click tracking requires jQuery.

Tracked Data

For standard data, see the Readme file in the GoogleTagManagerBundle. This bundle tracks product lists, product list clicks, product detail, add/remove basket, checkout, purchase.

All Pages
-currency
Product List
- ecommerce
    - impressions
        - id
        - name
        - price
        - priceIncludingVat
        - brand
        - category
        - position
        - list
        - realId
        - sale
        - variant
        
Product List Click
- ecommerce
    - currencyCode
    - click
        - actionField
            -list
        - products
            - id
            - name
            - price
            - brand
            - category
            - position
Product Detail
- ecommerce
    - detail
        - products
            - id
            - name
            - price
            - priceIncludingVat
            - brand
            - category
            - sale
            - category
            - variant
    
Add/Remove Basket
- ecommerce
    - add/remove
        - products
            - id
            - name
            - price
            - priceIncludingVat
            - brand
            - category
            - quantity
            - availability
            - sale
            - variant
            
Checkout
- ecommerce
    - checkout
        - actionField
            - step
            - option
        - products
            - id
            - name
            - price
            - priceIncludingVat
            - brand
            - category
            - position
            - quantity
            - availability
            - sale
            - variant
Purchase
- ecommerce
    - purchase
        - actionField
            - id
            - revenue
            - tax
            - shipping
            - shippingGross
            - discountTotalGross
            - total
            - totalGross
            - affiliateCode
            - paymentMethod
            - buyerEmail
            - coupon
        - products
            - id
            - purchaseId
            - name
            - price
            - priceIncludingVat
            - brand
            - category
            - categoryList
            - position
            - quantity
            - availability
            - sale
            - variant



Configuration for Google Analytics via GoogleTagManager

1. Add GoogleAnalytics tracking id variable which contains your GoogleAnalytics ID
2. Add GoogleAnalytics Tag with tag type Google Analytics: Universal Analytics
- 2.1 Track Type = Page View
- 2.2 Google Analytics Settings = Choose variable from first step
- 2.3 Enable Enhanced Ecommerce Features = true
- 2.4 Enable Use Data Layer
- 2.5 Choose trigger for all pages

3. If you want to add click tracking, add a new tigger and a new tag
- 3.1 Add new trigger with Trigger Type Custom Event and Event name productClick
- 3.2 Add new tag with tag type Google Analytics: Universal Analytics
    - 3.2.1 Track Type = Event
    - 3.2.2 Category = eCommerce
    - 3.2.3 Action = Product List click
    - 3.2.4 Google Analytics Settings = Choose variable from first step
    - 3.2.5 Enable Enhanced Ecommerce Features = true
    - 3.2.6 Enable Use Data Layer
    - 3.2.6 Choose trigger created in previous step
    
4. Configure GoogleAnaytics
- 4.1 Enable E-Commerce
- 4.2 Enable Enhanced E-Commerce
- 4.3 Add checkout step you want to track at the Checkout Labeling. Use the same order as in the shop