0

enter image description hereI have a website where Adsense ads are posted as well as analysts tracking.

I would like to set up a consent system for Adsense ads and analysts.

Only I am completely lost, what should I do? Thank you

Sg72
  • 95
  • 2
  • 10
  • The normal method is: On load check for a cookie, if the cookie is set load the tracking scripts, if not, show the consent button. When the consent button is clicked, set the cookie. Without more detail about your specific situation, there's not much we can do to help other than point your in roughly the right direction. – DBS Apr 06 '21 at 10:05
  • There is no consent system that manages this automatically? – Sg72 Apr 06 '21 at 14:01
  • There are lots, but I'm afraid question looking for recommendations of existing libraries/services are off topic for this site. – DBS Apr 06 '21 at 14:23
  • Are you sure ? My question is, however, "Consent for google adsense and analyst" so offering a libraries / services is part of it for me – Sg72 Apr 06 '21 at 14:35
  • If you want to write it yourself and have a specific code problem, we may be able to help. But: "Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam." ([source](https://stackoverflow.com/help/on-topic)) – DBS Apr 06 '21 at 14:56
  • Ok sorry I don't no – Sg72 Apr 06 '21 at 15:42
  • What about here https://stackoverflow.com/a/45838784/12668719 and there https://stackoverflow.com/a/70958220/12668719 ? – human Feb 03 '22 at 07:22

0 Answers0