Problems with Google Tag Manager (GTM) Plugin

Integrations

Hi everybody !

I can't integrate google tag manager. I followed the tutorial of the plugin but it talks about factor-settings.js (which I created and added GMT ID to).

Unfortunately, it does not work.

Tag manager doesn't run in development mode unless you set developmentMode to true...

// factor-settings
export default {
  googleTagManager: {
    googleTagManagerId: "GTM-THQBLTN",
    developmentMode: true
  },
}

This is because once you're set up, you don't want to have your development interactions show up in your analytics. I'll check and update the plugin docs.

I add factor-settings.js but having prob when i make npx factor dev or start.

100%  server netgen-esports
92% chunk asset optimization client netgen-esports
 ERROR  Module parse failed: Unexpected token (3:22)                                                                                                                             19:50:42
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| // factor-settings.js
| {
>     "googleTagManager": {
|       "googleTagManagerId": "GTM-(I CHANGE)", // Your GTM Container ID
|       "developmentMode": true // Load Tags in "development" mode (npm factor dev)
  You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
  | // factor-settings.js
  | {
  >     "googleTagManager": {
  |       "googleTagManagerId": "GTM-(I CHANGE)", // Your GTM Container ID
  |       "developmentMode": true // Load Tags in "development" mode (npm factor dev)
  at handleParseError (node_modules/webpack/lib/NormalModule.js:469:19)
  at node_modules/webpack/lib/NormalModule.js:503:5
  at node_modules/webpack/lib/NormalModule.js:358:12
  at node_modules/loader-runner/lib/LoaderRunner.js:373:3
  at iterateNormalLoaders (node_modules/loader-runner/lib/LoaderRunner.js:214:10)
  at Array.<anonymous> (node_modules/loader-runner/lib/LoaderRunner.js:205:4)
  at Storage.finished (node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
  at node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
  at node_modules/graceful-fs/graceful-fs.js:123:16
  at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3)

are you forgetting the export default from the example I gave above?

4