@plentymarkets/shop-module-gtag

Google Tag nuxt module integration for PlentyONE Shop
36,877
Install
npm install @plentymarkets/shop-module-gtag
Latest Version:1.4.0
Vue:3
License:BSD-3-Clause
Last Updated:Sep 4, 2026
Links: GitHub  ·  npm
Maintainer: jan.griesel

PlentyONE Shop Google Analytics nuxt module

Environment Variables

Environment Variable Type Default Description
PWA_MODULE_GA_ENABLED int 0 To enable the module it needs to be 1.
PWA_MODULE_GA_ID string '' The Google tag ID to initialize. If its empty, GA is deactivated
PWA_MODULE_GA_SHOW_GROSS_PRICES int 0 To use gross/net prices for e.g. the purchase-event. For gross prices this value needs to be 1
PWA_MODULE_GA_COOKIE_GROUP string CookieBar.marketing.label To change the cookie group for the plentyONE Shop cookie bar.
PWA_MODULE_GA_OPT_OUT int 0 To register the cookie as a opt-out needs to be 1, only working if the cookie group isn't essential.

Enable advanced consent mode

Add this to your nuxt.config.ts

pwa_module_gtag: {
    config: {
      initCommands: [
        ['consent', 'default', {
          ad_user_data: 'denied',
          ad_personalization: 'denied',
          ad_storage: 'denied',
          analytics_storage: 'denied',
          wait_for_update: 500,
        }]
      ]
    }
},

License

BSD 3-Clause

Version History

Version Released License
1.4.0 BSD-3-Clause
1.3.0 BSD-3-Clause
1.2.2 BSD-3-Clause
1.2.1 BSD-3-Clause
1.1.2 BSD-3-Clause