#PostHog to Astro Starlight

1 messages · Page 1 of 1 (latest)

dusky sedge
#

I'm looking for a way to add posthog to the astro starlight site. What is the best way, has anyone done this before? Usually, a thumbs up or thumbs down system in the starlight docs site should send analytics to PostHog.

How do I accomplish this?

wild brook
#

You probably would want to create the component with the 👍 👎 buttons and then add it somewhere using component overrides (e.g. page footer perhaps?)

#

I’m not familiar with PostHog specifically. What does it normally look like for something like this? Do they have example components or docs?

dusky sedge
#

I think I may need to override the footer.

Attaching an example.