AstroJs integration for VisitorQuery
</body>
tag. Here is an example:
astro:page-load
event to run the script.
This will ensure that the script runs after the page has loaded and triggers a check after each page load.
If you don’t need page views and you want to run the script only once, you can use the window.onload
event instead.