Global namespace

You can customize the name of your global gtag instance and dataLayer to avoid conflicting with already installed library instances in your application.

import { configure } from "vue-gtag";

configure({
  tagId: "GA_MEASUREMENT_ID",
  gtagName: 'myGtag',
  dataLayerName: 'myDataLayer'
})

Last updated