Skip to content

Commit

Permalink
feat: add plausible analytics 🎉
Browse files Browse the repository at this point in the history
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
  • Loading branch information
vinayakkulkarni committed Mar 18, 2023
1 parent ccd628a commit 023dd07
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/modules/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { NuxtConfig } from 'nuxt/schema';
import { plausible } from './plausible';

const modules: NuxtConfig['modules'] = [
// https://pinia.esm.dev/ssr/nuxt.html#nuxt-js
Expand All @@ -7,6 +8,8 @@ const modules: NuxtConfig['modules'] = [
'nuxt-windicss',
// https://vueuse.org/guide/#nuxt
'@vueuse/nuxt',
// https://github.com/nuxt-modules/plausible#setup
['@nuxtjs/plausible', plausible],
];

export { modules };
8 changes: 8 additions & 0 deletions config/modules/plausible.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export const plausible = {
hashMode: false,
trackLocalhost: false,
domain: 'expenses.geoql.in',
apiHost: 'https://analytics.geoql.in',
autoPageviews: true,
autoOutboundTracking: true,
};
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@commitlint/config-conventional": "^17.4.4",
"@deck.gl/layers": "^8.9.3",
"@deck.gl/mapbox": "^8.9.3",
"@nuxtjs/plausible": "^0.2.0",
"@types/geojson": "^7946.0.10",
"@types/uuid": "^9.0.1",
"@typescript-eslint/eslint-plugin": "^5.55.0",
Expand Down

0 comments on commit 023dd07

Please sign in to comment.