New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

cookie-consent-js

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cookie-consent-js - npm Package Compare versions

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.