Completed
Push — master ( 8ade08...681577 )
by Chien Lei
15s queued 12s
created

web/client/plugins/gtag.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 15
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 10
mnd 0
bc 0
fnc 2
dl 0
loc 15
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
import Vue from 'vue'
2
import VueGtag from 'vue-gtag'
3
4
export default function ({ app }) {
5
  Vue.use(VueGtag, {
6
    config: {
7
      id: app.$config.rsl.ga
8
    },
9
    pageTrackerTemplate () {
10
      return {
11
        page_title: window.document.title
12
      }
13
    }
14
  }, app.router)
15
}
16