MatteoGabriele / vue-gtag

Global Site Tag plugin for Vue (gtag.js)
https://matteo-gabriele.gitbook.io/vue-gtag/
MIT License
864 stars 66 forks source link

customResourceURL, with MV3 extension #538

Open ferllings opened 1 year ago

ferllings commented 1 year ago

Hello,

Because of MV3 security, I'm trying to embed gtag.js to my browser extension.

Vue.use(
    VueGtag,
    {
        config: { id: "G-XXXXXXX" },
        customResourceURL: "/gtag/js",
    },
    router
);

The initial call works fine and can load the script, but the script seems to want to call itself again, but with the original url.

Screenshot 2023-06-09 at 17 05 14

Any idea how I can fix that?

MatteoGabriele commented 3 weeks ago

I'm not sure what this is about