Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikdro authored Apr 29, 2020
1 parent 38b2f3d commit e585edf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ It's named `KD_GDPR_CC` and contains all identifiers of groups and cookies you d
So just check *consents* and load the needed JavaScript.
*Pro-Tip: If you are using Google Tag Manager to add your JS-Tags, you can define a custom variable of type "First-Party-Cookie", which can be used as condition inside triggers then.*

### React to datalayer event in Google Tag Manager
In order to react to the user's decision in the Google Tag Manager, not much is needed. This package pushes information into the dataLayer variable, which can be easily used in Google Tag Manager. All you have to do is create a user defined variable. As path you can use 'KD_GDPR_CC.consents'. Now this variable can be queried in the trigger. It contains all identifiers of the cookies/groups defined in the backend, which are accepted by the user.


#### Add a Re-open link
To create a link for reopening the banner, you only have to place a link with `#GDPR-CC-open-settings` as target:
Expand Down

0 comments on commit e585edf

Please sign in to comment.