Inline Classification

  • Updated

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=" //" 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 is classified as "essential" inline but as "ANALYTICS" on, 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.