Skip to content

Commit a307059

Browse files
committed
Add Fathom analytics
1 parent b784e78 commit a307059

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/.vuepress/config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { defaultTheme } from '@vuepress/theme-default'
33
import { viteBundler } from '@vuepress/bundler-vite'
44
import { fileURLToPath } from 'url';
55

6+
let head = [];
7+
if (process.env.NODE_ENV === 'production') {
8+
head.push(['script', { src: 'https://cdn.usefathom.com/script.js', 'data-spa': 'auto', 'data-site': 'DIOQPXCP', 'defer': true }]);
9+
}
10+
611
export default defineUserConfig({
712
bundler: viteBundler({
813
viteOptions: {
@@ -16,6 +21,7 @@ export default defineUserConfig({
1621
lang: 'en-US',
1722
title: 'Laravel Vue Pagination',
1823
description: 'A Vue.js pagination component for Laravel',
24+
head: head,
1925
theme: defaultTheme({
2026
repo: 'https://github.com/gilbitron/laravel-vue-pagination',
2127
navbar: [

0 commit comments

Comments
 (0)