Hi all,
I would like to use multiple Tag Manager ids in my project.
Is there any possible way to achieve this with _gatsby-plugin-google-tagmanager_ plugin?
Many thanks,
David
You should be able to put 2 (or more) separate instances of the plugin with different id in your gatsby-config:
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-google-tagmanager`,
options: {
id: "id1",
},
},
{
resolve: `gatsby-plugin-google-tagmanager`,
options: {
id: "id2",
},
},
]
Well, that actually worked 馃憤 Thanks
Going to close this then 馃槉
Most helpful comment
You should be able to put 2 (or more) separate instances of the plugin with different
idin yourgatsby-config: