add: analytics
This commit is contained in:
896
package-lock.json
generated
896
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -11,8 +11,10 @@
|
||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
|
||||
},
|
||||
"dependencies": {
|
||||
"@analytics/google-analytics": "^1.0.7",
|
||||
"@codemirror/lang-javascript": "^6.1.6",
|
||||
"@codemirror/theme-one-dark": "^6.1.0",
|
||||
"analytics": "^0.8.14",
|
||||
"codemirror": "^6.0.1",
|
||||
"copy-to-clipboard": "^3.3.3",
|
||||
"eventemitter3": "^4.0.7",
|
||||
|
||||
10
src/App.vue
10
src/App.vue
@@ -3,6 +3,16 @@ import { defineComponent } from 'vue';
|
||||
import HelpModal from './components/HelpModal.vue';
|
||||
import ShareModal from './components/ShareModal.vue';
|
||||
|
||||
import Analytics from 'analytics';
|
||||
import googleAnalytics from '@analytics/google-analytics';
|
||||
|
||||
const analytics = Analytics({
|
||||
app: 'instacode-app',
|
||||
plugins: [googleAnalytics({ measurementIds: ['G-919025NJDJ'] })]
|
||||
});
|
||||
|
||||
analytics.page();
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
HelpModal,
|
||||
|
||||
Reference in New Issue
Block a user