[WordPress] 外掛分享: Smart Cookie Kit

WordPress 外掛 Smart Cookie Kit 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Smart Cookie Kit」是 2015-11-30 上架。
  • 目前有 4000 個安裝啟用數。
  • 上一次更新是 2023-10-06,距離現在已有 576 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
  • 有 40 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

shark986 |

外掛標籤

GDPR | banner | cookie | ePrivacy | cookie law |

內容簡介

!!! 外掛版本 2.2 支援 Gutenberg 的翻譯
!!! 外掛版本 2.1 全面支援 WPML 和 Polylang,可輕鬆管理文字翻譯 !!!
!!! 外掛版本 2 符合 GDPR 規定 - 使用者偏好的 Cookie 名稱現在為「CookiePreferences-[wp_install_dir]」!!!

與其他外掛一樣,智慧型 Cookie Kit 封鎖 cookie 直到訪客接受它們,但它會以非同步方式(不刷新當前頁面)解鎖它們:此邏輯提高了服務器性能,改善了用戶體驗,更重要的是,使該外掛與快取外掛兼容!!
針對專注於行銷的網站,此外掛封鎖標準腳本和轉換/重新行銷腳本(包括「noscript」標籤)。

為什麼我決定創建這個外掛?
有很多 cookie 管理外掛...但:

許多工作在伺服器上,直接修改一些程式碼部分的輸出:如果有快取系統,它將快取用戶“觸發”快取創建的版本(如果用戶未接受 cookie 則使用修改后的腳本,或者如果接受了 cookie 則使用原始腳本),並向所有訪問者提供該版本,而不考慮他們的接受情況。
問題:無法使用快取系統。

當用戶接受 cookie 時,需要打開另一個頁面才能使原始腳本正常運作。很多外掛已經邁出了一步,使訪問頁面自動刷新,但網頁服務器必須再次工作,以提供“正確”的頁面,這可能會在速度較慢的連接(考慮到移動設備),沒有快取頁面的沉重頁面,具有外部資源的頁面(Youtube 影片,廣告,社交插件等)中成為一個嚴重問題。是否曾經發生過您開始閱讀某些內容或跳轉到底部搜索感興趣的內容,而由於刷新而將頁面滾動回頂部?!
問題:更糟的服務器性能和用戶體驗。

許多讓您指定包含 cookie 政策的頁面(在橫幅中鏈接該頁面),但通常它們也在該頁面中顯示 cookie 橫幅。
這不是太大的問題,我知道,但這是個細節!😉

我尋找不會直接在輸出中從服務器解鎖 cookie 的外掛,以允許使用快取系統;此外,我希望“事情”更快,更流暢,無需頁面刷新和沉重負載。
我的研究結果不太令人滿意(對我來說),所以我決定自己編寫外掛!

其主要功能如下:

它可以識別和自動修改腳本、iframe 和圖像以封鎖它們(阻止發生在服務器輸出中)。

它允許您標記要封鎖的代碼。

僅在必要時顯示 cookie 橫幅。

標語包括鏈接到您的 cookie 政策頁面,在該頁面中不顯示橫幅!

一旦用戶接受政策(或當政策已被接受時),它會通過 JavaScript 解鎖和運行腳本,而無需刷新頁面。由於是通過 JavaScript,即使有活動的快取系統,也會解鎖!

支援

請在 WordPress 官方支援區域發表文章:https://wordpress.org/support/plugin/smart-cookie-kit
如有問題,支援或建議,請發送郵件至:info[-at-]nicolamodugno[-dot-]it

原文外掛簡介

!!! Version 2.2 of plugin is compatible with Gutenberg for translations
!!! Version 2.1 of plugin is fully compatible with WPML and Polylang to easly manage texts translations !!!
!!! Version 2 of plugin is GDPR compliant – Cookie name for user preferences is now “CookiePreferences-[wp_install_dir]” !!!
Like others plugin, Smart Cookie Kit blocks cookies until the visitor accepts them, but it unlocks them asyncronously (without refreshing the current page): this logic increases server performance, improve user experience, and, more important, makes the plugin compatible with cache plugins!!
Thinked for marketing-oriented sites, this plugin blocks standard scripts and conversion/remarketing scripts (including the “noscript” tag too).
Why I decided to create this plugin?
There are a lot of plugins for cookies management… But:

Many work on the server, modifying some code portions directly in the output: if is there a cache system, it will cache the page in the version for the user that “fired” the cache creation (with modified scripts if the user has not accepted cookies, or with the original scripts if the cookies were accepted), and that version will be served to ALL visitors, regardless of their acceptance.
The problem: it is not possible use cache systems.

When user accepts cookies, it is necessary to open another page to have original scripts working. A lot of plugin have done a step forward, making an automatic refresh of the visited page, but web servers have to work again to serve the “correct” page and this may be a serious problem with slow connections (think to mobile devices), heavy pages (without cached pages!!), pages with external resources (Youtube videos, Ads, Social Plugins, …). Has it ever appened that you start reading some content or jump below to search content of interest and the page scrolls back on the top because of a refresh?!
The problem: worst server performance and user experience.

Many lets specify a page that contains cookie policy (to link that in the banner), but often they show the cookie banner in that page too.
This is not a big problem, I know, but it is a detail! 😉

I searched for a plugins that would not unblock cookies directly in the output from the server, to permit the use of cache systems; more over, I would like “things” faster and smoother without page refreshes and heavy loads.
My research had not satisfactory results (for me), so I decided to write my own plugin!
The main functionality are the following:

It recognises and modify automatically scripts, iframes and images to block them (the block happens directly in the output from the server).

It permits you to tag code to block.

It shows the cookie banner only if it is necessary.

It includes in the banner the link to your cookie policy page, and it does not show the banner in that page!

Once the user accepts the policy (or when policy is already accepted), it unblocks and run scripts via javascript, without a page refresh. Being via javascript, the unblock happens even if there are active cache systems!

Support
Please write on the WordPress official support area: https://wordpress.org/support/plugin/smart-cookie-kit
For questions, support or suggestions, you could write to: info[-at-]nicolamodugno[-dot-]it

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Smart Cookie Kit」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 1.0.3 | 1.0.4 | 1.1.0 | 1.1.1 | 1.2.0 | 1.2.1 | 1.2.2 | 1.2.4 | 1.2.5 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.0.6 | 2.1.0 | 2.1.1 | 2.1.2 | 2.1.3 | 2.2.0 | 2.2.1 | 2.2.2 | 2.2.3 | 2.2.4 | 2.3.0 | 2.3.1 | 2.3.2 |

延伸相關外掛(你可能也想知道)

文章
Filter
Apply Filters
Mastodon