WP tarteaucitron.js Self Hosted


This plugin aims to integrate and ease the use of tarteaucitron.js in WordPress. It’s developed with the creator of the service tarteaucitron.js.\
No additionals servers are needed. The script is stored in your WordPress website.

What is tarteaucitron.js ?

The European cookie law regulates the management of cookies, and you should ask your visitors their consent before exposing them to third-party services.

Clearly this script will:

  • Disable all services by default.
  • Display a banner on the first-page view and a small one on other pages.
  • Display a panel to allow or deny each services one by one.
  • Activate services on the second-page view if not denied.
  • Store the consent in a cookie for 365 days.

  • Load service when user click on Allow (without reloading of the page.),

  • Incorporate a fallback system (display a link instead of the social button and a static banner instead of advertising.).

Sources : Tarteaucitron.js github


This section describes how to install the plugin and get it working.


  1. Upload the plugin files to the /wp-content/plugins/wp-tarteaucintron.js directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin from the ‘Plugins’ screen in WordPress
  3. Use the Settings->wp-tarteaucintron.js screen to configure this plugin


Is it the same as tarteaucitron.io?

No it’s not the same.
This plugin is developped during my free time and is using the same base : tarteaucitron.js.
In this plugin, you have only the features implemented by tarteaucitron.js and nothing else.

Where is the script hosted ?

The javascript code of tarteaucitron.js is hosted directly inside your wordpress website.

Can I change the design to make it look like my website?

Yes you can!
But you have to add extra CSS that will override the tarteaucitron.js CSS rules.
This isn’t a functionality of this plugin.

I you don’t want to do it yourself, don’t hesitate to use the paid and official plugin : https://tarteaucitron.io/

Some services have been added but aren’t visible on the admin panel

Wait for the next update of this plugin. This may take a while since it’s a free plugin that I’m doing on my free time.


སྤྱི་ཟླ་བཅུ་གཅིག་པ། 19, 2021
Au-delà du problème de mise à jour, je n'ai jamais réussi à faire afficher quoi que ce soit au plugin et c'est bien dommage. Je ne comprends pas pourquoi, il n'a pas l'air très compliqué pourtant. Moi qui voulais éviter de mettre les doigts dans le code...
སྤྱི་ཟླ་ལྔ་པ། 17, 2021
Super plugin efficace et simple à mettre en oeuvre. Merci pour la dernière mise à jour.
སྤྱི་ཟླ་དང་པ། 29, 2021
It's a cool plugin but it lacks regular updates. The current version 1.1.0 of this plugin is completely outdated compared to the actual code of Tarteaucitron.
སྤྱི་ཟླ་བཅུ་གཅིག་པ། 28, 2019
Enfin un plugin GDPR qui me plait ! J'espère qu'il va durer. J'encourage et je remercie le dev pour son travail !
སྤྱི་ཟླ་བཅུ་གཉིས་པ། 10, 2018
An indispensable tool, directed by a talented and responsive developer. A big thank you!
སྤྱི་ཟླ་བཅུ་པ། 23, 2018
great job this plugin work very good More documentation and it will perfect ! have nice day every body
Read all 7 reviews

Contributors & Developers

“WP tarteaucitron.js Self Hosted” is open source software. The following people have contributed to this plugin.


“WP tarteaucitron.js Self Hosted” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “WP tarteaucitron.js Self Hosted” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



Add option to specify external CSS file


fixup to restore property useExternalCSS and useExternalJs

1.2.0 (04/2021)

Update to the last version (1.9.0) of tarteaucitron.js
Please check with the official documentation that all the service you are using are compatible, or update your configuration after the update.
This include the following changes:

  • add services : Linkedin Insigh, Twitter Universal Website Tag, Xandr, Adobe Analytics, Clarity, Compteur.fr, Kameleoon, Matomo, statcounter.com, Verizon Dot Tag, Woopra, HelloAsso, OneSignal, Facebook (post), Instagram, Userlike, Arte.tv, Deezer, podCloud, SoundCloud
  • Update service documentations
  • Update backend CSS to bootstrap 5.0


Update to the last version of tarteaucitron.js
This include the following changes:

  • add services : abtasty, contentsquare, leadforensics, google webfonts, emolytics
  • Add languages: Bulgarian and Romanian
  • Add the position “middle” for the banner
  • Update some privacy uri
  • Update some javascript function for services. e.g: recaptcha, vimeo, AT Internet, matomo, …

Please check that all your service are working correctly.
If you can’t find your service in the list of services, you’ll need to add yourself the code in the textarea provided for this.


  • Remove stat, to fix breaking call


  • Added Option for anonymous statistics


  • Corrected “UseExternalCss” option to load a custom alternatif css file from the default one if set to true.


  • Update menu “Languages” to “Texts”


  • Default value for initialisation script on the front end


  • corrected bug on initialisation settings


  • Added link to little documentation


  • Corrected minor bugs


  • removed option use external css that caused css bug on the website (this option is coming back when I found a patch)
  • Changed shortcode message


  • Corrected little bugs in update 1.0.4
  • If the banner stay even after the user accept, please save at least once the initisalisation option and remove all the cookies for the website in the browser


  • Update to script release 1.2
  • Updated services by adding new services (Hubspot, Twitter Widget Api)
  • Added initialisation variable ‘useExternalCss’
  • Added Greeks translation


  • Added ability to change the cookie name
  • Updated Service page by adding new services (adform, adsense, GetQuanty, HotJar, Koban, Matomo)
  • Updated roadmap
  • Updated to last version of tarteaucitron.js


  • corrected little bug with settings


  • Updated roadmap


  • Added feature to customize frontend texts.


  • added matomo service
  • added koban service
  • Updated tarteaucitron.js
  • added fb-video
  • Updated roadmap
  • corrected some texts


  • Initialisation of tarteaucitron.js without writing javascript
  • Possibility to customize the expiration time of the cookie
  • Possibility to choose the language for the frontend


  • Added default value for initialisation script


  • Initialisation script with a text area to insert the code. (Without the tag)
  • Services script with a text area and checkboxes to activates the services needed.