Skip to content

Commit

Permalink
Added Simple Analytics.
Browse files Browse the repository at this point in the history
  • Loading branch information
knirirr committed Sep 21, 2023
1 parent ac8884b commit 8847b12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"prettier": "^2.8.6",
"roboto-fontface": "*",
"sigma": "^2.4.0",
"simple-analytics-vue": "^3.0.2",
"trace-unhandled": "^2.0.1",
"tsparticles": "^2.8.0",
"v-clipboard": "^2.2.3",
Expand Down
5 changes: 5 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import VueSanitize from "vue-sanitize";
import Particles from "vue2-particles";
import VueGtag from "vue-gtag";
import VueHead from 'vue-head';
import SimpleAnalytics from "simple-analytics-vue";
import "vue-code-highlight/themes/prism-twilight.css";
import "vue-code-highlight/themes/window.css";
import 'prism-es6/components/prism-ruby.min';
Expand Down Expand Up @@ -63,6 +64,10 @@ Vue.use(VueGtag, {
config: { id: process.env.VUE_APP_ANALYTICS_ID }
});
Vue.use(VueHead);
Vue.use(SimpleAnalytics, {
skip: process.env.NODE_ENV !== 'production',
domain: "fairsharing.org"

This comment has been minimized.

Copy link
@adriaandotcom

adriaandotcom Sep 27, 2023

Remove this domain setting, it's only when you have a custom domain. Sorry for the confusing naming convention.

})

router.beforeEach(async(to, from, next) => await beforeEach(to, from, next, store));
router.afterEach(async(to) => await afterEach(to));
Expand Down

0 comments on commit 8847b12

Please sign in to comment.