Articles on: Install Clym

Strapi plugin

Clym CMP for Strapi


The Clym CMP plugin for Strapi allows you to quickly integrate Clym's consent and accessibility management solutions into your Strapi-powered website without needing to manually add the installation embed code to your project files. Once installed and configured, the plugin connects your website to your Clym account, making setup and ongoing management simpler and more streamlined. The plugin will automatically inject the Clym widget across your front-end pages, allowing you to easily deploy and manage Clym across your website.


Below, you can find details on:



Requirements




Installation


In your Strapi project root, run:


npm install strapi-plugin-clym-cmp


Then register the plugin in your Strapi configuration. Create or edit config/plugins.ts (or config/plugins.js):


export default () => ({
'clym-cmp': {
enabled: true,
},
});


Restart your Strapi server:


npm run develop



Configuration


  1. Open the Strapi admin panel
  2. Navigate to Content Manager → Single Types → Clym Settings
  3. Enter your Widget ID in the field provided
  4. Click Save


Your Widget ID can be found in your Clym Control Center account at auth.clym.io. After signing into your Clym account, your property ID will be available in your URL.





How It Works


The plugin registers a Koa middleware that intercepts every HTML response and injects two script tags into the <head> section before the response is sent to the browser:


<script src='https://config.clym-widget.net/v2/YOUR-WIDGET-ID.js'></script>
<script src='https://widget-next.clym-sdk.net/v2/stub.js' data-property='YOUR-WIDGET-ID'></script>



Verification


Visit any page served by your Strapi front-end and view the page source. You should see the two Clym script tags immediately after the opening <head> tag.


You can also use the test route included in the plugin:


GET /clym-test


This returns a minimal HTML page you can inspect to confirm the scripts are injected correctly.



Support


If you encounter any challenges, please reach out to support@clym.io.


Updated on: 13/05/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!