vue-gtag
Github
v1
v1
  • Get started
  • Bootstrap options
  • Auto tracking
  • Multiple domain tracking
  • Plugin hooks
  • API
  • Opt-in/out
  • Global namespace
  • Access gtag instance directly
  • Debug
  • Plugin options
  • Methods
    • pageview
    • event
    • screenview
    • customMap
    • purchase
    • linker
    • set
    • time
    • config
    • exception
Powered by GitBook
On this page
  1. Methods

purchase

PreviouscustomMapNextlinker

Last updated 5 years ago

export default {
  name: 'MyComponent',

  methods: {
    track () {
      this.$gtag.purchase({
        "transaction_id": "24.031608523954162",
        "affiliation": "Google online store",
        "value": 23.07
      })
    }
  }
}

Remember, this is just an example. check the all API parameters in the official gtag documentation

here