🧩 Plasmo Developers�PD
🧩 Plasmo Developers13mo ago
1 reply
Aziz

Google Analytics Issue (URL import)

Hello, Im facing a weird bug when trying to use google analytics, in my content.tsx im importing the google tag manager import "https://www.googletagmanager.com/gtag/js?id=G-.....

in the dev build it works fine and I see requests to /collects and in the analytics dashboard I see the data, but in the production build it's not working and not able to import the gtag
Uncaught (in promise) Error: Cannot find module 'iKwBb
Uncaught TypeError: Cannot read properties of undefined (reading 'register')

btw im using this version: "plasmo": "^0.57.2"
image.png
Was this page helpful?