Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 591 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 591 Bytes

Strapi plugin gtm-module

🖐 Installation

Add plugin dependency

npm i strapi-gtm-module

Configure the plugin

// file: config/plugins.js
module.exports = ({ env }) => ({
  // ...
  "strapi-gtm-module": {
    config: {
      gtmId: '',
      measurementId: '',
    },
  },
  // ...
}
  • gtmId - Google Tag Manager Id. Found in:

Workspace > Header right > ex: GTM-...

  • measurementId - The measurement ID associated with a stream. Found in the Google Analytics UI under:

Admin > Data Streams > choose your stream > Measurement ID ex: G-...