• So I have tracking of enhanced analytics enabled in plugin settings and when I submit the order, all data layer data is loaded correctly, including the order revenue. However, the revenue doesn’t get loaded by GA.

    This is the DataLayer as seen on order-received page by GTM Preview tool:

    {
      gtm: {start: 1607064166540, uniqueEventId: 12},
      event: 'gtm.load',
      pagePostType: 'page',
      pagePostType2: 'single-page',
      pagePostAuthor: 'admin',
      ecommerce: {
        currencyCode: 'EUR',
        purchase: {
          actionField: {
            id: '202000037',
            affiliation: '',
            revenue: 33.8,
            tax: 0,
            shipping: 3.9,
            coupon: ''
          },
          products: [
            {
              id: 119206,
              name: '3PACK Klasické pono?ky v dar?ekovej krabi?ke Calvin Kle
                    in 100002161 001',
              sku: '8718824988269',
              category: 'So vzorom/obrázkom',
              price: 28.9,
              stocklevel: 4,
              variant: 'uni',
              quantity: 1
            }
          ]
        }
      },
      inputID: 'password',
      inputName: 'password',
      inputClass: 'form-control',
      formID: '(no form ID)',
      formName: '(no form name)',
      formClass: 'login'
    }

    And this is my revenue variable set in GTM (data layer version 2:

    ecommerce.purchase.actionField.revenue

    Strange thing I’ve noticed, when I check the data layer conents from Google Tag Assistant on order-received page, the structure is different. Here’s the data layer from tag assistant:

    [
      {
        "gtm.start": 1607064166420,
        "event": "gtm.js",
        "gtm.uniqueEventId": 1
      },
      {
        "pagePostType": "page",
        "pagePostType2": "single-page",
        "pagePostAuthor": "admin",
        "event": "gtm4wp.orderCompletedEEC",
        "ecommerce":     {
          "currencyCode": "EUR",
          "purchase":       {
            "actionField":         {
              "id": "202000037",
              "affiliation": "",
              "revenue": 33.8,
              "tax": 0,
              "shipping": 3.9,
              "coupon": ""
            },
            "products":         [
              {
                "id": 119206,
                "name": "3PACK Klasické pono?ky v dar?ekovej krabi?ke Calvin Klein 100002161 001",
                "sku": "8718824988269",
                "category": "So vzorom/obrázkom",
                "price": 28.9,
                "stocklevel": 4,
                "variant": "uni",
                "quantity": 1
              }
            ]
          }
        },
        "gtm.uniqueEventId": 5
      },
      {
        "gtm.start": 1607064166540,
        "event": "gtm.js",
        "gtm.uniqueEventId": 6
      },
      {
        "event": "gtm4wp.formElementEnter",
        "inputID": "username",
        "inputName": "username",
        "inputClass": "form-control",
        "formID": "(no form ID)",
        "formName": "(no form name)",
        "formClass": "login",
        "gtm.uniqueEventId": 7
      },
      {
        "event": "gtm4wp.formElementLeave",
        "inputID": "username",
        "inputName": "username",
        "inputClass": "form-control",
        "formID": "(no form ID)",
        "formName": "(no form name)",
        "formClass": "login",
        "gtm.uniqueEventId": 8
      },
      {
        "event": "gtm4wp.formElementEnter",
        "inputID": "password",
        "inputName": "password",
        "inputClass": "form-control",
        "formID": "(no form ID)",
        "formName": "(no form name)",
        "formClass": "login",
        "gtm.uniqueEventId": 9
      },
      {
        "event": "gtm4wp.formElementLeave",
        "inputID": "password",
        "inputName": "password",
        "inputClass": "form-control",
        "formID": "(no form ID)",
        "formName": "(no form name)",
        "formClass": "login",
        "gtm.uniqueEventId": 10
      },
      {
        "event": "gtm.dom",
        "gtm.uniqueEventId": 11
      },
      {
        "event": "gtm.load",
        "gtm.uniqueEventId": 12
      }
    ]

    What could be the issue?
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    What GTM preview tool are you referring to specifically?

    The difference is that the first dump shows you the actual content of the data layer while the second dump shows the steps, the historical push() commands one by one that is merged into the actual state of the data layer at a specific GTM event.

    Also please share the domain of your site and a shared preview link from Google Tag Assistant.

    In case I can not place an order without using my bank card, I will not be able to place a test order and check your site settings.

    Thread Starter AHOiREKLAMA

    (@ahoireklama)

    Hi Thomas,

    I was referring to the classic GTM Preview tool.

    Sure, I can sand you the site domain and shared preview link, is there a way to send you this privately and not on public forum?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Order revenue is present in DataLayer, doesn’t get loaded in Analytics’ is closed to new replies.