
內容簡介
這個外掛會在網頁頂部顯示一個不突兀的資訊橫幅,告知使用者網站使用 cookies。此做法採取暗示同意模式,未在放置 cookies 前明確詢問使用者同意,僅告知使用者有使用 cookies。當使用者到達第二頁或點擊關閉按鈕時,橫幅會隱藏。此做法與許多政府網站(包括 gov.uk)使用的方法相似。
此外掛有設定選項,可讓管理員自訂資訊橫幅的顏色及內容。
安裝此外掛會產生一個範例的 cookie 資訊頁面。您需要自行編輯該頁面的內容。
為什麼需要另一個 cookie 外掛?
市面上有許多 WordPress cookie 外掛,但它們似乎都沒有符合我的需求。它們通常提供過於突兀的使用者體驗(例如透過模式彈出視窗),或者設定過於複雜。
技術細節
此外掛使用 jQuery(JavaScript)顯示及隱藏資訊橫幅。透過 jQuery Cookie Plugin(隨同此外掛一併提供)儲存 cookie,以追蹤已顯示過訊息,避免在後續頁面顯示資訊橫幅。
外掛標籤
開發者團隊
原文外掛簡介
This plugin displays an unobtrusive information bar at the top of the page informing the user about the site’s use of cookies. This approach follows an implied consent model. It doesn’t explicitly ask the user for consent before placing cookies, it merely informs them about the use of cookies. When the user navigates to a second page or clicks on the dismiss button, the bar is hidden. This approach is similar to that used on many government websites including gov.uk.
The plugin has settings in the admin which allows the colour and content of the information bar to be customised.
An example cookie information page will be created on installation of the plugin. It is up to you to correctly populate the text on that page.
Why another cookie plugin?
There are many WordPress cookie plugins available but none of them seemed to do what I wanted. They typically tend to provide a very intrusive experience for the user (e.g. via modal popups), or are too complex to configure.
Technical Details
This plugin uses jQuery (JavaScript) to show and hide the information bar. A cookie is stored via the jQuery Cookie Plugin (included with this plugin) to track that the message has been displayed and does not need to be shown on each subsequent page view.
