google-analyticsnuxt.jsenhanced-ecommerce

Google Analytics Enhanced Ecommerce doesn't work


I am trying to integrate Enhanced Ecommerce into my page (Google Analytics seems to work). The problem is - in browser console I get debug messages without errors, but on Google Analytics page I can see nothing.

So, it looks like this:

enter image description here

This code I just copied from documentation:

  this.$ga.ecommerce.addProduct({
    'id': 'P12345',                   // Product ID (string).
    'name': 'Android Warhol T-Shirt', // Product name (string).
    'category': 'Apparel',            // Product category (string).
    'brand': 'Google',                // Product brand (string).
    'variant': 'Black',               // Product variant (string).
    'position': 1,                    // Product position (number).
    'dimension1': 'Member'            // Custom dimension (string).
  });
  this.$ga.ecommerce.setAction('click', {
    'list': 'Search Results'
  });

And on Google Analytics page there is nothing about this. Literally nothing except users online and pages they visit, but nothing about Enhanced Ecommerce

enter image description here

Somewhere on Stack Overflow I saw that on page must be only one action, I tried and it didn't work. In any case, here is configuration of @nuxtjs/google-analytics:

const testingAnalytics = true;

module.exports = {
    modules: [
     '@nuxtjs/google-analytics',
    ],
      googleAnalytics: {
    id: process.env.GA_ID,
    dev: testingAnalytics ? true : process.env.NODE_ENV !== 'production',
    debug: testingAnalytics
      ? {
        enabled: true,
        sendHitTask: true
      }
      : {},
    ecommerce: {
      enabled: true,
      enhanced: true
    }
  },
}

If somebody knows, how to fix that and how to make things work, I'll be grateful.


Solution

  • Actually, probably everything works properly and you can make sure clicking this button to get new report: enter image description here