MatteoGabriele / vue-gtag

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

i want to implement this // Measure Google Ads conversions gtag('event', 'conversion', { 'send_to': 'AW-CONVERSION_ID/AbC-D_efG-h12_34-567', 'value': 1.0, 'currency': 'USD' }); but how? #174

Closed rakeshrio closed 4 years ago

rakeshrio commented 4 years ago

If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.

Description

What are you reporting?

Expected behavior

Tell us what you think should happen.

Actual behavior

Tell us what actually happens.

Environment

Run this command in the project folder and fill in their results:

npm ls vue-gtag:

Then, specify:

  1. Operating system:
  2. Browser and version:

Reproducible Demo

Please take the time to create a new app that reproduces the issue or at least some code example

Demonstrable issues gets fixed faster.

MatteoGabriele commented 4 years ago
export default {
  name: 'MyComponent',

  methods: {
    track() {
      this.$gtag.event('conversion', {
        send_to: 'AW-CONVERSION_ID/AbC-D_efG-h12_34-567',
        value: 1.0,
        currency: 'USD',
      })
    },
  },
}