1. Documentation
  2. Consent Management
  3. Script/Cookie/Iframe Classification

Inline Classification

Inline Classification

Osano now supports the idea of Inline Classifications. This allows developers to add in classifications within their own HTML using Osano data tags, rather than classifying within the b2b web platform itself.

Use Case

We would like to improve Osano Consent Manager's page performance as it impacts our SEO metrics. We have developer resources to do inline classifications, and our DPO/legal team will review them. 

Using Inline Classifications

In your HTML, you can add data-osano tags to classify scripts and iframes. 

Example HTML Javascript: <script data-osano="ESSENTIAL" src="https://<js-script>.com"></script>

Example HTML iframe: <iframe data-osano="Essential" src=" //player.vimeo.com/video/etc." width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>

Note: The only accepted inline classification options are "Essential", "Marketing", "Personalization", and "Analytics".

There is no concept of inline ruling. You must use exact matches for inline script classification.  

IMPORTANT: Inline classifications will override any classifications made within the Osano platform. So if https://www.google-analytics.com is classified as "Essential" inline but as "Analytics" on my.osano.com, it will accept the classification of  "Essential" as that was what was defined inline. 

This project continues Osano’s work to lessen our impact on Search Engine Optimization. With Inline Classifications, you are empowered to further improve Osano Consent Manager’s performance on your page.