Integrate HumanBehavior SDK with Astro for session recording and analytics.
humanbehavior-js
packagesrc/components/HumanBehavior.astro
:
src/layouts/Layout.astro
):
.env
file in your project root:
PUBLIC_
prefix is required for Astro to expose the environment variable to the client-side code.<script>
tag in the component.
PUBLIC_
to be available in client-side code.
PUBLIC_
.env
file is in your project root