Skip to content

Javascript plugin allowing a website to comply with the EU cookie law.

License

Notifications You must be signed in to change notification settings

baisijian/cookieconsent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cookie Consent

Javascript plugin allowing a website to comply with the EU cookie law.

By the way

We've released a new version of this. Check it out: cookieconsent2

Features

  • Free to use and modify
  • Only show to EU visitors
  • Opt in once for all sites
  • Implied or explicit consent
  • Works with do not track

Integration

Refer to the Cookie Consent website for detailed integration documentation and our simple configuration wizard to see what can be customized.

Basic usage

<link rel="stylesheet" type="text/css" href="cookieconsent.css"/>
<script type="text/javascript" src="cookieconsent.js"></script>

<script type="text/javascript">
// <![CDATA[
cc.initialise({
	cookies: {
		social: {},
		analytics: {},
		advertising: {},
		necessary: {}
	},
	settings: {
		consenttype: "implicit"
	}
});
// ]]>
</script>

Credits

Created by Silktide.

About

Javascript plugin allowing a website to comply with the EU cookie law.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 58.5%
  • CSS 40.8%
  • HTML 0.7%