mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
3ca550b188
* docs: update hosted docs domain to mintlify.site * docs: complete mintlify.site migration across remaining pages Updates 45 files that PR 6282 had originally changed but were reverted by PR 6285 and not re-addressed in this PR: - snippets/vercel-json-generator.mdx (all 4 locales): rewrite destinations now use mintlify.site, consistent with deploy/vercel.mdx - assistant/use.mdx: example deep-link URLs - ai/skillmd.mdx: agent card subdomain reference - guides/assistant-embed.mdx: docsURL code example - guides/codex.mdx: MCP URL example - deploy/authentication-setup.mdx: example Mintlify subdomain - discovery-openapi.json: domain identifier URL descriptions (4 occurrences) - integrations/privacy/osano.mdx: managed rule domain - editor/branching-and-publishing.mdx: branch preview URL format - customize/themes.mdx: theme demo site links - guides/help-center.mdx: live example link - zh/editor/collaborate.mdx: branch preview URL format All changes mirrored across es, fr, and zh locales. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com> Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
57 lines
1.9 KiB
Plaintext
57 lines
1.9 KiB
Plaintext
---
|
|
title: "Osano"
|
|
description: "Integrate Osano with your Mintlify documentation site to manage cookie consent banners, privacy preferences, and regulatory compliance."
|
|
keywords: ["Osano integration", "cookie consent manager", "GDPR compliance"]
|
|
boost: 3
|
|
---
|
|
|
|
Add [Osano](https://www.osano.com/) cookie consent to your docs with a [custom JavaScript file](/customize/custom-scripts#custom-javascript) in your repository.
|
|
|
|
## Setup
|
|
|
|
Create an `osano.js` file in your docs repository with the following content:
|
|
|
|
<CodeGroup>
|
|
|
|
```js Format
|
|
var script = document.createElement("script");
|
|
script.src = "OSANO_SCRIPT_URL";
|
|
document.head.appendChild(script);
|
|
```
|
|
|
|
```js Example
|
|
var script = document.createElement("script");
|
|
script.src = "https://cmp.osano.com/your-tenant-id/your-site-id/osano.js";
|
|
document.head.appendChild(script);
|
|
```
|
|
|
|
</CodeGroup>
|
|
|
|
Replace `OSANO_SCRIPT_URL` with your Osano script URL. Your script URL is the `src` value in the code snippet that Osano generates. Your script URL always starts with `https://cmp.osano.com/` and ends with `/osano.js`.
|
|
|
|
## Troubleshooting
|
|
|
|
<Accordion
|
|
title="Pages not loading with Strict compliance mode"
|
|
>
|
|
If your documentation pages aren't loading properly when using Osano's **Strict** compliance mode, you'll need to add Mintlify's domain to your allowlist to allow images and other assets to load.
|
|
|
|
<Steps>
|
|
<Step title="Navigate to Managed Rules">
|
|
In your Osano dashboard, go to **Scripts** → **Managed Rules**.
|
|
</Step>
|
|
|
|
<Step title="Add Mintlify domain">
|
|
Add `.mintlify.site/` as a managed rule.
|
|
|
|
<Frame>
|
|
<img src="/images/integrations/osano-managed-rule.png" alt="Osano managed rule" />
|
|
</Frame>
|
|
|
|
<Info>
|
|
This ensures that all Mintlify-served assets (including images, stylesheets, and other documentation resources) are treated as essential and load even when Osano blocks uncategorized third-party content.
|
|
</Info>
|
|
</Step>
|
|
</Steps>
|
|
</Accordion>
|