Google Analytics

Introduction

Pass ga to default theme to use Google Analytics.
Value is the id provided by

Google Analytics
.
Something like G-XXXXXXXXX.
Would auto config gtag script in site head if provided.

Example config

vite.config.(js|ts)
+
import {  } from 'vite'
import {  } from '@sveltepress/vite'
import {  } from '@sveltepress/theme-default'

export default ({
  : [
    ({
      : ({
        : 'G-XXXXXXXXX' 
      })
    })
  ],
})
ts
Last update at: 2024/02/20 08:44:13