gridsome
gridsome

https://github.com/gridsome/gridsome
Go to Github

⚡️ Build super fast, modern websites with Vue.js

https://github.com/gridsome/gridsome/issues/79Go to Github

RewardedView inPlugin request: Google Analytics#79

tomtevcreated this issue about 1 month ago

Summary

A simple Gridsome

Basic example

At Gridsome.org we use vue-analytics and add this to main.js`

import VueAnalytics from 'vue-analytics'

export default function (Vue, { head, router, isServer }) {
  Vue.use(VueAnalytics, {
    id: 'UA-127625720-1',
    disabled: isServer,
    debug: {
      sendHitTask: process.env.NODE_ENV === 'production'
    },
    router
  })
}

This could be done in a plugn instead that lets users add options in gridsome.config.js.

A plugin can use the Client API for this: https://gridsome.org/docs/client-api

Logs