johannschopplich / nuxt-gtag

🔸 Google Analytics & Ads integration made easy
https://developers.google.com/tag-platform/gtagjs
MIT License
302 stars 9 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'is_legacy_loaded') #55

Closed agracia-foticos closed 7 months ago

agracia-foticos commented 8 months ago

Environment

Reproduction

When i load the module we have this errors: image

Describe the bug

When i load the module we have this errors: image

Additional context

No response

Logs

No response

johannschopplich commented 8 months ago

Thanks for the report. Can you please provide a reproducible example? Please use a template below to create a minimal reproduction: 👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz 👉 https://codesandbox.io/p/github/nuxt/starter/v3-codesandbox

Thanks in advance!

gorkie commented 7 months ago

The same happens to me. It seems when i use to multiple tags in nuxt.config.

muhammedjenos commented 7 months ago

The same happens to me. It seems when i use to multiple tags in nuxt.config.

Exactly the same issue. Only when using multiple tags. Just IDs inside tags array. :(

johannschopplich commented 7 months ago

I have to close this issue based on:

johannschopplich commented 6 months ago

@gorkie @muhammedjenos This has been fixed in the latest version v2.0.6. Please upgrade.