diff --git a/Documentation/Developer/Index.rst b/Documentation/Developer/Index.rst index 3fe9b080..d1dee9af 100644 --- a/Documentation/Developer/Index.rst +++ b/Documentation/Developer/Index.rst @@ -59,6 +59,18 @@ cookieman.hide() Hides the confirmation modal. +cookieman.consent(groupKey) +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +:aspect:`Description` + Adds the given group (e.g. 'marketing') to the consented groups, updates the CookieConsent cookie + and injects all items given each corresponding trackingObject's `inject` section. + + This is meant as a programmatic way to implement banners before showing content from external sources such as YouTube + videos, Google Maps, facebook posts, ... – clicking the "yes, show the content"-button would call this function and a + `