Description
Trecova Companion adds the features that do not belong in a theme:
- 9 accessible blocks: service card, steps, key figure, call to action, FAQ (native details, FAQPage data),
contact details, breadcrumb (BreadcrumbList data), video or map loaded on consent, cookie list. - SEO: title, description, Open Graph, canonical URL, noindex per page and structured data.
Turns itself off when Yoast SEO, SEOPress or Rank Math is active. - Cookie consent following the French CNIL recommendations: purposes listed on the first screen,
“Accept all”, “Reject all” and “Customise” buttons of equal weight, number of partners, choice per
purpose (unchecked by default), partner list with links to their privacy policies, cookie lifetime
(13 months maximum) and choice retention (6 months). Nothing is loaded before consent. - Paid search and analytics (Google Tag Manager, Google Analytics 4, Google Ads, Meta Pixel),
loaded only after consent, with Google Consent Mode v2. - Privacy clean-up: no emoji script from s.w.org, no DNS prefetch to s.w.org, WordPress version hidden
(can be turned off with thetrecova_companion_privacy_cleanupfilter). - Private site mode for pre-production: add
define( 'TRECOVA_COMPANION_PRIVATE', true );to wp-config.php.
New blocks can be added at any time: one folder in src/blocks, then npm run build.
Source code
The block scripts in build/ are compiled with @wordpress/scripts. Their uncompiled source code is
included in the plugin, in the src/ folder, with package.json and package-lock.json. To rebuild:
npm ci && npm run build.
External services
The plugin itself sends no data anywhere. Third-party services are contacted only if the site owner
configures them in Settings > Trecova and the visitor consents to the matching purpose:
- Google Tag Manager, Google Analytics 4 and Google Ads (Google Ireland Limited) — audience measurement
and advertising. Terms: https://policies.google.com/terms — Privacy: https://policies.google.com/privacy - Meta Pixel (Meta Platforms Ireland Limited) — advertising.
Terms: https://www.facebook.com/legal/terms — Privacy: https://www.facebook.com/privacy/policy/ - YouTube (youtube-nocookie.com), Vimeo (dnt=1), Dailymotion, Google Maps and OpenStreetMap — embedded
videos and maps, loaded only after a click or consent to “social media and external content”.
YouTube / Google Maps: see Google above. Vimeo: https://vimeo.com/terms and https://vimeo.com/privacy.
Dailymotion: https://legal.dailymotion.com/. OpenStreetMap: https://osmfoundation.org/wiki/Privacy_Policy
The visitor’s choice is stored for 6 months in a first-party cookie (trecova_companion_consent).
Copyright
Trecova Companion, (C) 2026 Hervé CARROTTE Consulting (H2C). Distributed under the GNU GPL v2 or later.
Icons: original work, GPLv2 or later.
Blocks
This plugin provides 9 blocks.
- Trecova Steps Numbered step timeline (method, process). Accessible ordered list.
- Trecova FAQ Expandable questions and answers, keyboard accessible, with FAQPage structured data for Google.
- Trecova Breadcrumb Accessible breadcrumb (secondary navigation) with BreadcrumbList structured data. Hidden on the front page.
- Trecova Key figure A highlighted figure and its caption.
- Trecova Call to action Conversion box: title, text and button (optional ad conversion tracking).
- Trecova Contact details Phone, email and address taken from the Trecova settings (a single source to update).
- Trecova Cookie list Always up-to-date table of purposes, partners, cookies and lifetimes (built from Settings > Trecova). Place it in your cookie policy.
- Trecova Video or map (with consent) YouTube, Vimeo, Dailymotion, Google Maps or OpenStreetMap loaded only when the visitor clicks (GDPR).
- Trecova Service card Card presenting a service: icon, title, text and descriptive link.
Installation
- Plugins > Add New > Upload Plugin, then activate.
- Settings > Trecova: contact details, tracking IDs (optional), additional partners and cookie durations.
- Add a “Manage cookies” link to your footer with the URL
#manage-cookies.
FAQ
-
Does it work without the Trecova Blocks theme?
-
Yes. Colours fall back to sensible defaults; with Trecova Blocks they follow the theme palette.
-
No. The banner only appears when at least one tracker needs consent.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Trecova Companion” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Trecova Companion” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
2.0.4
- Security: every output is escaped at the time it is printed. SVG icons (filterable) are sanitized against an SVG allowlist; block wrapper attributes, rich text, the media placeholder and the partner table are escaped when output.
- Block attributes in patterns are serialized with serialize_block_attributes(); JSON-LD is encoded with wp_json_encode() without flags.
- Translations are no longer bundled: they are provided by translate.wordpress.org language packs (load_plugin_textdomain() removed).
2.0.3
- The Trecova logo is shown next to the title of the Settings > Trecova page.
2.0.2
- Editor: the “Choose a pattern” window shown when creating a page presents each pattern in a clearly separated card, with a readable title and a preview of limited height. Can be disabled with the trecova_companion_pattern_chooser_style filter.
- Patterns: the page patterns are renamed by type (“Page · Ad landing page (Google Ads)”, “Page · Service details”), consistent with the Trecova Blocks theme.
2.0.1
- Plugin Check: heading levels of the Call to action, Service card, Steps and Cookie list blocks are cast to integers when printed.
- Plugin Check: removed an unused filter on resource hints that named s.w.org (WordPress 6.6 and later no longer add this DNS prefetch; emojis stay disabled).
2.0.0
- Renamed from Elan Companion to Trecova Companion (slug, text domain, block namespace trecova-blocks/…, PHP prefixes, option and cookie names, CSS classes, JavaScript API window.trecovaConsentApi and event trecova:consent).
1.5.1
- Breadcrumb block: very long words wrap instead of overflowing on small screens.
- “Tested up to” is declared in this readme only (WordPress.org requirement).
1.5.0
- Privacy clean-up and private site mode moved here from the theme.
1.4.0
- Renamed Trecova Companion (slug trecova-companion).
