cookie-consent-js
Advanced tools
Comparing version 1.1.3 to 1.1.4
{ | ||
"name": "cookie-consent-js", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "A simple dialog and framework to handle the German and EU law (may 2020) about cookies in a website", | ||
@@ -5,0 +5,0 @@ "main": "src/cookie-consent.js", |
@@ -29,7 +29,15 @@ # cookie-consent-js | ||
### Read status | ||
### Read the status | ||
```js | ||
cookieConsent.isTrackingCookieAllowed() | ||
``` | ||
Use this function to disable tracking. | ||
Suround for example the Analytics code with | ||
```js | ||
if(cookieConsent.isTrackingCookieAllowed()) { | ||
// Google Analytics code and other tracking code | ||
} | ||
``` | ||
### Configuration properties | ||
@@ -36,0 +44,0 @@ With default values. |
18174
86