> For the complete documentation index, see [llms.txt](https://products.monterosa.co/mic/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://products.monterosa.co/mic/integration-guide/web-page-embedding/hosting-an-experience-on-your-domain.md).

# Hosting an Experience on your domain

How to host a Monterosa Experience on your website seamlessly

When embedding an Experience via an iframe, modern browsers may treat the embedded webpage as "[third-party content](#user-content-fn-1)[^1]" and limit its functionality. That is because the web domain of the parent page (your website) is different to the web domain of the embedded Experience, so from the browser perspective it looks "foreign".

This may cause various undesirable effects, e.g. disable analytics functionality in Apple Safari due to its [ITP (Intelligent Tracking Prevention) initiative](https://webkit.org/blog/8311/intelligent-tracking-prevention-2-0/) or block the Experience's ability to keep its state in Google Chrome's Incognito Mode due to its [default Third-Party Cookies settings](https://support.google.com/chrome/answer/95647).

{% hint style="info" %}
Google [plans](https://blog.google/products/chrome/update-testing-privacy-sandbox-web/) to extend Chrome's limitations for Third-Party Cookies to a normal (i.e. non-Incognito) browsing mode by the end of 2024. Other browsers are likely to follow the suit.
{% endhint %}

## Solution

To ensure these and other issues are prevented, we recommend hosting the Monterosa embedded Experience on the same domain as its parent page using either a sub-domain or a sub-page.

### Sub-domain

This is typically the simplest solution to set up.

If your website's domain is "yourwebsite.com" then we will liaise with your IT team to make our Experience available at a URL that may look like this: "<https://interact.**yourwebsite.com**/experiences/1.0.0/>".

As you are the owner of the domain, your IT team will have to "allow" this setup by adding two records to your DNS configuration at our request: one to allow the domain "redirect" (CNAME to our CloudFront distribution) and another to enable HTTPS (ACM's DNS validation).

### Sub-page

This is the preferred option if DNS manipulations are impossible for technical or policy reasons.

If your website's domain is "yourwebsite.com" then we will liaise with your IT team to make our Experience available at a URL that may look like this: "<https://interact.**yourwebsite.com**/experiences/1.0.0/>".

This configuration requires a more complicated setup on your end and its details depend on the content delivery technology you use. In most cases we will work with your IT team to add a "rule" or "behaviour" to your CDN configuration that will pass the traffic that reaches your website via a specific path — e.g. "/experiences/\*" — to our infrastructure.

[^1]: Content that is not coming from or managed by the owner of the web page that embeds it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://products.monterosa.co/mic/integration-guide/web-page-embedding/hosting-an-experience-on-your-domain.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
