The cookie scanner module allows TrustCommander users to monitor cookies on their website and to provide users with an automated cookie notice.
TrustCommander offers a cookie scanner that continuously monitors websites for cookies in realtime. The scanner has access to a database of common analytics and marketing cookies and can therefore provide ready to use descriptions and information. This cookie information can be used to install a dynamic cookie notice on the website that provides transparent information about the used cookies and their purpose to visitors.
Cookie scanner combines three mechanisms to identify cookies on websites:
Cookie Scanner uses a JavaScript tag that is directly deployed on the website (e.g. with TagCommander). The JavaScript tag scans cookies of website users in realtime. This allows to identify cookies that are set in very specific scenarios e.g. it allows to identify cookies that are only set for a specific geolocation or behind a log-in form.
The tag also monitors the 3rd party domains the website communicates with (e.g. for an Analytics service). This information is used to infer 3rd party cookies via the cookie scanner cookie database.
JavaScript tags have limited access to cookie information—therefore cookie scanner enriches the information identified with the JavaScript tag with information received with the Chrome extension and cookie database.
Not all cookies are accessible to JavaScript tags. The Commanders Act Assistant Chrome extension has more technical capabilities to scan missing cookie information. To use the Chrome extension it just needs to be installed in an up to date Chrome browser. After that it starts scanning cookies while surfing the website. This provides a powerful mechanism to identify cookies in all areas of the website, no matter they require a log-in.
Commanders Act recommends to install the Chrome extension on multiple team members across different country teams to cover a wide range of use cases.
Some technical systems (like Drupal) create dynamic cookie names. Cookie Scanner therefore groups cookies when 5 or more cookies start with the same 4 characters. (e.g. abcd123, abcd2345, abcd3456, etc.)
Cookie scanner can scan following types of cookies:
Cookie Type
Description
Scanned with
1st Party Cookie
1st party cookies are cookies that are stored on the domain of the website.
Tag
Chrome Extension
3rd Party Cookie
3rd party cookies are cookies that are stored on a 3rd party domain.
Chrome Extension
Cookie Database
HttpOnly 1st Party Cookie
HttpOnly 1st Party Cookie are server cookies that are stored on the domain of the website and that have a HttpOnly flag.
Tag
Chrome Extension
HttpOnly 3rd Party Cookie
HttpOnly 3rd Party Cookie are server cookies that are stored on a 3rd party domain and that have a HttpOnly flag.
Chrome Extension
Cookie Database
Local Storage
localStorage is a JavaScript accessible browser storage.
Tag
Chrome Extension
Session Storage
sessionStorage is a JavaScript accessible session based browser storage.
Tag
Chrome Extension
Cookie Scanner scans following fields per cookie:
Field
Description
Scanned with
Name
Name of cookie e.g. _ga
Tag
Chrome Extension
Vendor
Name of the vendor that uses the cookie e.g. Google
Cookie Database
Category
Category of the cookie that give a high level information on the purpose of the cookie e.g. Technical Cookie
Cookie Database
Storage Location
Storage location of the cookie (combination of cookie type and storage domain). It has one of the following values:
3rd Party Cookie (www.example.de)
The domain in brackets is the domain where the cookie is stored. For 1st party cookies it is the domain or subdomain of the website. For 3rd party cookies it is a 3rd party domain or subdomain that is different from the website.
Tag
Chrome Extension
Storage Duration
Storage duration of the cookie. An algorithm is used to smoothen technical inaccuracies and to optimise readability for users:
For Session Cookies it displays "Session"
Under 1 month it displays in days, e.g. "7 days"
Above 1 month it displays in month, e.g. "13 months"
Above 36 month it displays in years, e.g. "5 years".
Above 100 years it displays “Unlimited”
Local storage always has duration "Unlimited" and session storage always has duration "Session".
Tag
Chrome Extension
Cookie Database
Description
Description for what the cookie is used, e.g. “Base64 UUID used to identify users on this website to optimise usage across sessions. Used on all pages.”
Cookie Database
Cookie scaner doesn't store cookie's values
TRUST > Cookie Scanner > EDIT (Tab)
In the edit step of the cookie notice it is possible to investigate, edit and enrich cookie information.
All identified cookies are listed in three groups:
New lists new Cookies that have not yet been manually investigated
Active lists Cookies that should be shown in the cookie notice
Ignored lists (internal) Cookies that should not be shown in the cookie notice
It is possible to edit the information of each cookie by pressing the Pen
icon to the right on the table. This will open a cookie dialogue with following options:
Option
Description
Name
The name of the cooke can not be edited.
Vendor
Dropdown that allows to map the cookie to a TrustCommander vendor managed under TRUST > Categories & Tags
.
Vendor Label
Defines the name of the cookie vendor listed on the cookie notice.
Vendor URL
A URL of the vendor that is used in the cookie notice. This allows customers to click the name of the vendor.
Category
Dropdown that allows to map the cookie to a TrustCommander category managed under TRUST > Categories & Tags
.
Category Label
Defines the name of the cookie category listed on the cookie notice.
Storage Type
One of the storage types listed under Cookie Fields.
Storage Domain
The domain where the cookie is stored.
Storage Duration
The duration the cookie is valid on users browsers.
Description
A description of the cookie. If possible this field is automatically filled from the cookie database. In case it is overwritten the description is not anymore synced with the cookie database. Clicking the Reset Default
button will re-sync the description with the cookie database descriptions.
Custom Fields
All custom fields created in the cookie scanner options.
It is possible to add custom cookies by pressing the ADD COOKIE
button on the top right of the interface. This will open a cookie dialogue that has the same fields as the edit cookie information dialogue. Additionally it has a Name
field that allows to set the name of the custom cookie.
New cookies and inactive cookies can be activated via the Checkmark
icon. This adds them to the Active cookies list.
Active cookies and be deactivated by clicking the Stop sign
icon. This adds them to the Inactive cookies list.
Inactive cookies can be deleted with the Trash can
icon. This removes the cookie from the list entirely.
Cookies that should not be shown in the cookie notice should be kept in the inactive list and not deleted. Otherwise they will re-appear as soon as the cookie scanner identifies them again.
Localisation is not available yet.
It is possible to localise cookie information. This allows to translate important information of each cookie for the cookie notice that can be embedded on a website.
To localise cookie information it is first necessary to select supported languages. To select supported languages go to TRUST > Options
and select the country codes of the languages the cookie notice should be made available in. It is recommended to select country codes from the dropdown, but it is also possible to add custom country codes. Cookie Scanner offers automatic translation of predefined information for common languages (EN, FR, DE, IT).
After selecting the needed country codes the cookie information can be translated in the EDIT
step of the interface. To translate a cookie click the Pen
icon to open the edit modal. There it is possible to select a country code via a dropdown. Then adjust the setting the fields to translate them. You can preview the cookie list in a specific language by using the country code dropdown in the top right of the interface.
Following fields support localisation:
Vendor Label
Category Label
Description
Custom Fields
The cookie list displays optional labels for each cookie in the cookie list to inform about important information and notifications.
Label
Description
Inferred
The cookie was not identified directly, but inferred via the cookie database. It might be a false positive.
Missing
The cookie was not scanned for over one month. It might not be in active use anymore.
Custom
The cookie was manually created.
Set before consent
The cookie is set before a customer provides consent via TrustCommander. This can be intentional for essential cookies.
TRUST > Cookie Scanner > DEPLOY (Tab)
The DEPLOY (Tab)
interface is used to install, create and deploy a cookie notice on a website. It provides a versioned list of cookie notices that were created within the account.
After all cookie information was setup in the EDIT (Tab)
it is possible to install the cookie notice on a website. The cookie notice is available in 3 versions:
Copy/past the js code on your legal page to automatically build the cookies list table.
The HTML table is the recommended way to install a dynamic cookie notice on websites.
For this it is recommended to setup both a JavaScript tag (e.g. tag template 'TRUST | Install Cookie Notice' in TagCommander) and a placeholder <div>
on the website (e.g. in the Content Management System). The placeholder is a slot where the table should be inserted and the tag loads the table and inserts it into the slot.
Both the <div>
and the tag need to be configured with a common id
. e.g. in case the placeholder <div>
has following id: <div id="ca-slot--cookie-notice"></div>
it is necessary to set the parameter #PLACEHOLDER_DIV_ID#
of the tag template TRUST | Install Cookie Notice
to ca-slot--cookie-notice
.
Endpoint of the HTML file:
https://cdn.tagcommander.com/cookie-scanner/<site_id>/v1/cookies-<language_code>.html
site_id: Commanders Act site ID (e.g. 1234
).
language_code: Language of the cookie notice (e.g. fr
, default language is en
).
The HTML table uses semantic and accessible table HTML. This ensures that the table uses the default styling of your website. The style of the table can be directly adjusted with the CSS of the website. In case you need help styling you can reach out to your Commanders Act consultant.
The JSON API provides a method to install a cookie notice for advanced use cases. It provides all cookie information in a structured data format that can be used by technical users to create custom functionalities. The JSON API can e.g. be used to inject a custom cookie notice into a native App.
Endpoint of the json file:
https://cdn.tagcommander.com/cookie-scanner/<site_id>/v1/cookies-<language_code>.json
site_id: Commanders Act site ID (e.g. 1234
).
language_code: Language of the cookie notice (e.g. fr
, default language is en
).
Before it is possible to deploy updates to the cookie notice it is necessary to create a new version. To create a new cookie notice version click the NEW VERSION
button on the top right of the interface. This will take all cookies in the Active list of the EDIT (Tab)
to create the cookie notice. In the new version dialogue it is possible to provide a comment that explains changes in the new version for internal reference.
The Play
button to the right of a cookie notice version can be used to preview a cookie notice. This will not apply any styling of the website so the look will differ compared to the cookie notice on the website.
A Down Arrow
button is available for each cookie notice version. It allows to download the cookie notice in all localisations in HTML
, JSON
, CSV
and XSLX
format. In the XSLX
one tab is included per language. For all other formats a ZIP
will be provided that includes one file per language.
The DEPLOY
button to the right of each cookie notice version can be used to deploy a cookie notice to the website. This allows to deploy new versions, but allows to roll back to older version in case of issues.
Cookie Scanners allows to add custom fields to provide additional details per cookie. These fields can be added inside of the feature settings accessible via the Gear
icon. It is possible to re-arrange the fields by changing their order via drag and drop.
User Rights for Cookie Scanner are not yet available.
Cookie Scanner offers following user rights:
User Right
Description
View Cookie List
User can see the cookie list.
Manage Cookie List
User can edit the cookie list and create custom cookies.
Generate Cookie Notice
User can view the Deploy Step and generate a cookie notice version.
Deploy Cookie Notice
User can deploy cookie notice versions.
Manage Cookie Scanner Settings
User can adjust cookie scanner settings (e.g. custom fields).
You can filter your cookie's list by host (website) and language
1st Party Cookie ()
HttpOnly 1st Party Cookie ()
HttpOnly 3rd Party Cookie ()
localStorage ()
sessionStorage ()