MatteoGabriele / vue-gtag

Global Site Tag plugin for Vue (gtag.js)

Home Page:https://matteo-gabriele.gitbook.io/vue-gtag/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

customResourceURL, with MV3 extension

ferllings opened this issue · comments

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?

I'm not sure what this is about