Title: Caching Compatible Cookie Opt-In and JavaScript
Author: matthias.wagner
Published: <strong>8 می 2020</strong>
Last modified: 16 آوریل 2025

---

جستجوی افزونه‌ها

![](https://ps.w.org/caching-compatible-cookie-optin-and-javascript/assets/banner-
772x250.jpg?rev=2301253)

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://ps.w.org/caching-compatible-cookie-optin-and-javascript/assets/icon-
256x256.jpg?rev=2301253)

# Caching Compatible Cookie Opt-In and JavaScript

 توسط [matthias.wagner](https://profiles.wordpress.org/matthiaswagner/)

[دانلود](https://downloads.wordpress.org/plugin/caching-compatible-cookie-optin-and-javascript.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/caching-compatible-cookie-optin-and-javascript/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/caching-compatible-cookie-optin-and-javascript/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/caching-compatible-cookie-optin-and-javascript/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/caching-compatible-cookie-optin-and-javascript/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/caching-compatible-cookie-optin-and-javascript/)

## توضیحات

This lightweight plugin closes the gap between the annoying need for a cookie-banner
to opt-in to some scripts (third party tracking, …) and super fast websites enabled
by server-side caching plugins like WP Fastest Cache, W3 Total Cache and so on.

It is very simple:
 * A visitor makes his selection by clicking the buttons in the
cookie banner (use all cookies or use only necessary cookies) * The selection is
stored in a cookie * Now after every page load our JS checks the cookie and asynchronously
fetches the allowed scripts depending on the users selection * You can also place
shortcodes with inline scripts and html in your content with the same functionality
and inline-warnings if no optin was made * You can also place a shortcode to show
the visitor his decision and allow him to revoke that decision, which seems necessary
if you want to be gdpr compliant with your cookie solution

[Our documentation including information on action and filter hooks can be found here](https://www.notion.so/falkemedia/Caching-Compatible-Cookie-Opt-In-and-JavaScript-4375c9b364b04b51bbd396e1514f105b)

## عکس‌های صفحه

[⌊Various input fields for your scripts⌉⌊Various input fields for your scripts⌉[

Various input fields for your scripts

[⌊Use your individual texts and colors⌉⌊Use your individual texts and colors⌉[

Use your individual texts and colors

[⌊Banner style "Information"⌉⌊Banner style "Information"⌉[

Banner style “Information”

[⌊Banner style "Blocking"⌉⌊Banner style "Blocking"⌉[

Banner style “Blocking”

## نصب

#### 1. Plugin Installation

 1. Upload plugin-folder to your “/wp-content/plugins/” directory.
 2. Activate the plugin through the Plugins-menu in WordPress.

#### 2. Plugin Setup

Scripts-Tab: Fill in the scripts you would like to execute Settings-Tab: Choose 
your custom wording and styling

## سوالات متداول

### Why another cookie notice plugin?

Many popular Cookie-Notice-Plugins will fail if you try to set them up together 
with server-side caching plugins. That is because they check the opt-in cookie in
PHP, which will be cached. This plugin works differently, since the whole logic 
happens in JavaScript. So everything can be cached server-side without any troubles
for the opt-in process.

### Where are the settings?

Look for “Cookie-Optin & JS” in your Settings-Tab in the WordPress dashboard.

### Why so many input fields?

This plugin will put your JavaScript code into the or section of your website. For
each section you can decide if you want to have code there all the time or only 
after opt-in. So this can be used as an all-in-one solution for placing website-
wide JavaScript used for tracking and so on in your website. Since this is done 
after page load it will also have a good impact on website speed.

### Is it possible to place inline JavaScript or HTML

Yes, we provide a shortcode for that which enables the same functionality as for
the head or body scripts.

### Is it possible to revoke the decision from the cookie banner?

Yes, we provide a shortcode which will display a button to revoke. Additionally,
you can define the name of cookies which you want to unset when a user clicks this
revoke button.

### What about multilingual sites?

So far we only support polylang. If you use polylang, you can translate the strings
which will be visible in the banner in the “Strings translations” settings from 
polylang. If you use any other plugin or want to change texts and settings programmatically,
you can use actions and filters like described in our [documentation](https://www.notion.so/falkemedia/Caching-Compatible-Cookie-Opt-In-and-JavaScript-4375c9b364b04b51bbd396e1514f105b)

### Do you have further questions?

We will do our best to answer them in the support threads.

## نقد و بررسی‌ها

![](https://secure.gravatar.com/avatar/f0df67b6089ea5a760543b3daead41c1311a84a070b76dec38f9478fcd800ca4?
s=60&d=retro&r=g)

### 󠀁[Works great, learned something new](https://wordpress.org/support/topic/works-great-learned-something-new/)󠁿

 [Janine](https://profiles.wordpress.org/janinemarie/) 30 سپتامبر 2021

I appreciate the simplicity and thoughtfulness of this plugin. Thanks for making
it!

![](https://secure.gravatar.com/avatar/2f491f911861d08a249159be7ffccf5edf8b7c4a01e5579f02be54adda83de20?
s=60&d=retro&r=g)

### 󠀁[super simple](https://wordpress.org/support/topic/super-simple-73/)󠁿

 [matthias.wagner](https://profiles.wordpress.org/matthiaswagner/) 8 می 2020

i like it because i wrote it 😀

 [ خواندن تمامی 2 نقد و بررسی‌ ](https://wordpress.org/support/plugin/caching-compatible-cookie-optin-and-javascript/reviews/)

## توسعه دهندگان و همکاران

“Caching Compatible Cookie Opt-In and JavaScript” نرم افزار متن باز است. افراد زیر
در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ matthias.wagner ](https://profiles.wordpress.org/matthiaswagner/)

[ترجمه “Caching Compatible Cookie Opt-In and JavaScript” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/caching-compatible-cookie-optin-and-javascript)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/caching-compatible-cookie-optin-and-javascript/)،
[مخزن SVN](https://plugins.svn.wordpress.org/caching-compatible-cookie-optin-and-javascript/)
را بررسی کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/caching-compatible-cookie-optin-and-javascript/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/caching-compatible-cookie-optin-and-javascript/)
مشترک شوید.

## گزارش تغییرات

#### 0.0.11

 * XSS-related security fix. Thanks [SOPROBRO](https://patchstack.com/database/researcher/9b6c8f8f-33bf-41a9-8ff3-651418dddd41)
   for reporting.

#### 0.0.10

 * Fixed missing background for JavaScript-hint

#### 0.0.9

 * Added documentation, action and filter hooks

#### 0.0.8

 * Added the ccco-inline shortcode to place scripts and html everywhere in content

#### 0.0.7

 * Added functionality to unset cookies on revoke also from top-level-domain (like
   google analytics sets them)

#### 0.0.6

 * Added possibility to unset cookies on revoke

#### 0.0.5

 * Added shortcode to provide a revoke functionality

#### 0.0.4

 * Bugfix button style

#### 0.0.3

 * Initial public release

## اطلاعات

 *  نگارش **0.0.11**
 *  آخرین به‌روزرسانی **1 سال پیش**
 *  نصب‌های فعال **20+**
 *  نگارش وردپرس ** 5.0 یا بالاتر **
 *  آزمایش‌شده تا **6.8.8**
 *  نگارش PHP ** 7.0 یا بالاتر **
 *  زبان
 * [English (US)](https://wordpress.org/plugins/caching-compatible-cookie-optin-and-javascript/)
 * برچسب
 * [cache](https://fa.wordpress.org/plugins/tags/cache/)[caching](https://fa.wordpress.org/plugins/tags/caching/)
   [cookie](https://fa.wordpress.org/plugins/tags/cookie/)[fastest cache](https://fa.wordpress.org/plugins/tags/fastest-cache/)
   [Optin](https://fa.wordpress.org/plugins/tags/optin/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/caching-compatible-cookie-optin-and-javascript/advanced/)

## امتیازها

 5 از 5 ستاره.

 *  [  امتیاز 2 5-ستاره     ](https://wordpress.org/support/plugin/caching-compatible-cookie-optin-and-javascript/reviews/?filter=5)
 *  [  امتیاز 0 4-ستاره     ](https://wordpress.org/support/plugin/caching-compatible-cookie-optin-and-javascript/reviews/?filter=4)
 *  [  امتیاز 0 3-ستاره     ](https://wordpress.org/support/plugin/caching-compatible-cookie-optin-and-javascript/reviews/?filter=3)
 *  [  امتیاز 0 2-ستاره     ](https://wordpress.org/support/plugin/caching-compatible-cookie-optin-and-javascript/reviews/?filter=2)
 *  [  امتیاز 0 1-ستاره     ](https://wordpress.org/support/plugin/caching-compatible-cookie-optin-and-javascript/reviews/?filter=1)

[بررسی شما](https://wordpress.org/support/plugin/caching-compatible-cookie-optin-and-javascript/reviews/#new-post)

[مشاهدهٔ همهٔ بررسی‌ها](https://wordpress.org/support/plugin/caching-compatible-cookie-optin-and-javascript/reviews/)

## مشارکت کنندگان

 *   [ matthias.wagner ](https://profiles.wordpress.org/matthiaswagner/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/caching-compatible-cookie-optin-and-javascript/)

## کمک مالی

آیا تمایل دارید از پیشرفت این افزونه حمایت کنید؟

 [ کمک مالی به این افزونه ](https://www.matthias-wagner.at)