Closed codingwithmanny closed 8 months ago
Maybe we'll add this in the future, but seems better for now to use head
for this. This way we don't need to hardcode URLs, etc. for a bunch of analytics providers.
For example, we use Fathom for the Viem docs.
import { defineConfig } from 'vocs'
export default defineConfig({
head: (
<>
<script
src="https://cdn.usefathom.com/script.js"
data-site="BYCJMNBD"
defer
/>
</>
),
})
Thanks for insight on this @tmm
Context
In order to make documentation better, it would be great to track where people are doing and understand what actions they are taking.
Solutions
Integrate the following via configuration for:
Proposal
Support the following convention for the tracking to allow for multiple forms of tracking to occur.
Change 1/2
File:
vocs.config.ts
Change 2/2
TBD - Need to config where in the templates this would exist, ideally just before closing
</body>
with conditionals for each,