Exposing AdWords AccountId in the .JS file?
christoph-werker opened this issue · comments
Christoph Werker commented
Hello Together,
I just noticed that the plugin exposes the Ad-Words account in the source code. Is it possible to prevent this somehow? I use Webpack and include VueGtag as follows.
Vue.use(VueGtag, {
config: {id: "AW-xxxxxxxxx"}
});
I'm using the following Settings in Webpack:
mix.options({
cssNano: {
discardComments: {
removeAll: true,
},
},
uglify: true,
autoprefixer: true,
})
.polyfill({
enabled: true,
useBuiltIns: "usage",
targets: "> 0.25%, not dead"
})
.js('resources/js/backend/app.js', 'public/js/app.js').vue({extractStyles: false, globalStyles: false,})
Thanks for your help.
Matteo Gabriele commented
The plugin doesn't expose anything: that's your bundle. In javascript, everything is exposed.