Google Tag Manager and Venue Sumo Event Tracking Set up Summary


Summary


  1. Code Set up in Venue Sumo admin


  2. Tag, Trigger and Data variables set up in Google Tag Manager (GTM)
    1. Purchase Event
    2. Event - Click to Venue Sumo Event (CTA Button Action)
  3. Promo code set up (for testing product sales)
  4. Testing and review via Google Analytics (GA4)

To begin with, ensure you have analytics tracking code set up on your website and GA4 tracking
conguration added in GTM.

Google ecommerce set up documentation for reference.

 

1. Code Set up in Venue Sumo admin area

  • Venue Sumo to add script to ‘Order Conrmation page footer’ within Settings > Location
  • If your business has multiple locations, you will need to add this to each. 

<!-- VENUE SUMO ORDER CONFIRMATION PAGE FOOTER -->
<script>

    var items = new Array();
    
    $.each(orderProducts, function (i, item) {
        
        var item = {
            item_name: item.name,
            item_id: item.id,
            price: item.price,
            item_category: item.category,
            quantity: item.quantity
        }
        
        items.push(item);
        
    });

    window.dataLayer = window.dataLayer || [];
    window.dataLayer.push({
      event: 'purchase', 
      ecommerce: {
        currency: 'AUD',
        value: orderTotal,
        transaction_id: orderID,
        coupon: '',
        location: orderLocation,
        items: items
      }
    });


</script>
 
Please take note of the transaction ID, Value and Currency as these will be used for GTM set up. 
  1. GTM tag set up in Venue Sumo admin area
    1. Venue Sumo or supplier to add GTM tracking code into Header and Header Content.

      Access for ‘settings’ then select ‘Assets/branding’

 
Additional note: Your Facebook pixel tracking is also set up in this area.
 

2. Create GA4 Event Tag for Purchase


Go to Tags > New.

Select Google Analytics: GA4 Event.

Set Configuration Tag to the GA4 configuration tag you created.

Event Name:

purchase


Event Parameters:

Parameter Name Value
transaction_id {{DLV - ecommerce.transaction_id}}
value {{DLV - ecommerce.value}}
currency {{DLV - ecommerce.currency}}
coupon {{DLV - ecommerce.coupon}}
location {{DLV - ecommerce.location}}
items {{DLV - ecommerce.items}}

(You will create these Data Layer Variables next.)


Trigger:

  • Trigger Type: Custom Event
  • Event Name:

    purchase


Create Data Layer Variables (DLVs)

In Variables > New, create the following Data Layer Variables.

Variable Name Data Layer Variable Name
DLV - ecommerce.transaction_id ecommerce.transaction_id
DLV - ecommerce.value ecommerce.value
DLV - ecommerce.currency ecommerce.currency
DLV - ecommerce.coupon ecommerce.coupon
DLV - ecommerce.location ecommerce.location
DLV - ecommerce.items ecommerce.items

Make sure each is set to:

  • Data Layer Version: 2
  • You can leave the default value blank unless you want to set a fallback.

Test in GTM Preview Mode

  • Click Preview in GTM.
  • Load the confirmation page with a test transaction.

Confirm that:

  • purchase  event is firing.
  • Data Layer variables correctly pull the values from the push.
  • The value  appears as a number (no quotation marks).

In GA4 DebugView:

  • Ensure the purchase  event is received.
  • Verify all parameters are showing correctly.

 

Validate in GA4 Reports

  • Check Realtime > Events to see the purchase event.
  • Check Monetization > Ecommerce purchases the next day to confirm revenue is recorded.

3. Promo code set up in Venue Sumo

a. Set up promo code in Venue Sumo for testing your product sales so you can
process live sales with credit card payment. Suggest setting for promo code to
allow product to be discounted to $1.00.
 

 
 
 
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us