Bots (SEO & Performance tools)
Default behavior: robots.txt blocks all bots
User-agent: *
Disallow: /Allowing bots to load the SDK under a custom domain
Bypass consent collection for bots
<script type="text/javascript">
window.didomiConfig = {
user: {
bots: {
/**
* Indicate whether consent is required for bots.
* Defaults to false when configuring the consent notice from
* the Didomi console. Defaults to true otherwise.
*/
consentRequired: false,
/**
* Predefined types of bots to identify
* Defaults to all types supported by the SDK
* (Optional)
*/
types: ['crawlers', 'performance'],
}
}
};
</script>Example using extraUserAgents
Bots categories
ID
Category
Description
Last updated