Analytics
Oxidoc supports Google Analytics and custom analytics scripts.
Google Analytics
Add your measurement ID:
oxidoc.tomltoml
[analytics]
google_analytics = "G-XXXXXXXXXX"Oxidoc injects the Google Analytics gtag.js snippet into every page.
Custom Script
For other analytics providers (Plausible, Fathom, Umami, etc.), inject a custom script tag:
oxidoc.tomltoml
[analytics]
script = '<script defer data-domain="example.com" src="https://plausible.io/js/script.js"></script>'The script value is injected directly into the <head> of every page. You can use any analytics provider that works via a script tag.
Using Both
You can set both google_analytics and script if needed — both will be injected.