| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,6 +57,7 @@ | |||
| 57 | 57 | "vue-async-computed": "^3.8.2", | |
| 58 | 58 | "vue-class-component": "^7.2.2", | |
| 59 | 59 | "vue-fragment": "^1.5.1", | |
| 60 | + "vue-gtag": "^1.10.0", | ||
| 60 | 61 | "vue-i18n": "^8.0.0", | |
| 61 | 62 | "vue-property-decorator": "^8.3.0", | |
| 62 | 63 | "vue-router-stack": "^1.3.3", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,8 +2,14 @@ import Vue from 'vue' | |||
| 2 | 2 | import AsyncComputed from 'vue-async-computed' | |
| 3 | 3 | // eslint-disable-next-line @typescript-eslint/no-var-requires | |
| 4 | 4 | const Fragment = require('vue-fragment') | |
| 5 | + import VueGtag from 'vue-gtag' | ||
| 5 | 6 | ||
| 6 | 7 | export function boot() { | |
| 7 | 8 | Vue.use(AsyncComputed, { errorHandler: false } as never) | |
| 8 | 9 | Vue.use(Fragment.Plugin) | |
| 10 | + Vue.use(VueGtag, { | ||
| 11 | + config: { id: '259251618' }, | ||
| 12 | + enabled: process.env.NODE_ENV === 'production', | ||
| 13 | + disableScriptLoad: process.env.NODE_ENV !== 'production' | ||
| 14 | + }) | ||
| 9 | 15 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -138,6 +138,8 @@ export default Vue.extend({ | |||
| 138 | 138 | } | |
| 139 | 139 | const request = RelayedRequest.validate(JSON.parse(resp.data)) | |
| 140 | 140 | request.origin = resp.headers['x-data-origin'] | |
| 141 | + // eslint-disable-next-line @typescript-eslint/camelcase | ||
| 142 | + this.$gtag.event('connex-sign', { event_label: request.origin }) | ||
| 141 | 143 | this.postStatus(ACCEPTED_SUFFIX, {}) | |
| 142 | 144 | // TODO validate body | |
| 143 | 145 | return request | |
| Back | FazBrowse Home | New Git URL |
0 commit comments