orestbida / cookieconsent

:cookie: Simple cross-browser cookie-consent plugin written in vanilla js
https://playground.cookieconsent.orestbida.com/
MIT License
4.07k stars 416 forks source link

[Docs]: Astro integration #626

Open dkorecko opened 10 months ago

dkorecko commented 10 months ago

What is the improvement/update you wish to see?

Hello, I'd love to see an implementation guide for using Astro. I've given it a few attempts and no matter what I do, I can't manage to get the modal to show up.

Link the related docs page, if it exists.

https://cookieconsent.orestbida.com/essential/getting-started.html

orestbida commented 10 months ago

@dkorecko check out the demo example on Stackblitz.

Bcdo commented 9 months ago

I am trying to follow the Astro demo, as well as I have looked through the documentation and GitHub issues, however, I struggle to make it work for the ga4 consent mode (non-GTM).

If I can get this working, I will happily PR update the documentation or Stackblitz demo for the Astro implementation.

dkorecko commented 7 months ago

@dkorecko check out the demo example on Stackblitz.

That works, thank you! Maybe it'd be a good idea to mention on this page https://cookieconsent.orestbida.com/essential/getting-started.html the demos for other languages as well?

subjacked commented 3 months ago

I have a small problem. I have integrated it the way shown in stackblitz example but also use ViewTransitions. The preference modal link only works on the first page you visit. After that the event listener is not working. I don't know how to fix it.