1. reteach help-center
  2. Settings
  3. Personalisation of your academy

How to use tracking with the Google Tag manager and Google Analytics

Tracking page views and other statistics with Google Analytics and more

Requirements: You need to have a Google Tag Manager account.

Many services and third-party providers use snippets, scripts, or HTML frames that need to be embedded in the header of a website.

This is especially important for tracking, such as when you want to add your own tracking codes (e.g., Google Analytics).

To track your academy website, you need to configure your tracking codes in Google Tag Manager containers.

You can enter your Google Tag Manager ID in the "Academy" and "Tracking" section under settings. Copy this ID from your Google Tag Manager account and paste it into the designated field in reteach. Then click "Save."

 

E-Commerce Tracking

If you sell courses through your academy, you can track sales using Google Tag Manager.

We use standard e-commerce tracking for GA4. You can find a description of this here.

When the shopping cart is accessed (billing address form)

When the shopping cart page is accessed, the following event is passed to Google Tag Manager: "begin_checkout"

dataLayer.push({
    event: "begin_checkout",
    ecommerce: {
      items: [{
        item_name: "YOUR_COURSE_NAME",
        item_id: "YOUR_COURSE_ID",
        price: YOUR_COURSE_PRICE_NET,
        index: 1,
        quantity: 1
      }]
    }
});

When the thank-you page is accessed after a successful order

After a successful order, the following event is passed to Google Tag Manager: "purchase"

 

dataLayer.push({
  event: "purchase",
  ecommerce: {
      transaction_id: "ORDER_NUMBER",
      value: ORDER_VALUE_NET,
      tax: ORDER_TAX,
      currency: "EUR",
      items: [{
        item_name: "YOUR_COURSE_NAME",
        item_id: "YOUR_COURSE_ID",
        price: YOUR_COURSE_PRICE_NET,
        index: 1,
        quantity: 1
      }]
  }
});