> For the complete documentation index, see [llms.txt](https://docs.limio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.limio.com/integrations/other-integrations/custom-code.md).

# Custom code

Limio allows to inject code on any Limio pages. This can be useful to inject various third-party services such as marketing pixels (Facebook, LinkedIn, Reddit, Amazon, DoubleClick, Bing, others), analytics (Google Analytics, Adobe Analytics), tag managers (Google Tag Manager, Adobe Launch), session replay (Microsoft Clarity, FullStory, Hotjar, LogRocket), experimentation platforms with client-side DOM mutation (Optimizely Web Experimentation, VWO, AB Tasty), consent management platforms (OneTrust, Cookiebot), live chat widgets, and personalisation engines.

Go to any Limio Pages, click on 'Settings', and copy paste the code snippet into the Inject Code part. Then save, rebuild, and publish the page.

<figure><img src="/files/w67PatGRKnWsrFHks7LJ" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Custom code is not validated. Incorrect code may cause issues with the published page. Limio cannot assist in troubleshooting third-party code.
{% endhint %}

Note that you will need to make sure that the URL to external services are defined in Allowed Hosts list. See for more details.

{% content-ref url="/spaces/xxxhzz4ER0TH1oIFAttf/pages/Mj8gM74NvQ3W3jd4m6JE" %}
[CORS Configuration](/product/settings/security/cors-configuration.md)
{% endcontent-ref %}

You can also inject custom logic or code via:

* Via custom components - see [Getting Started with Custom Components](/developers/custom-components/custom-components.md)
* Via Limio's data layer and tag manager - see [Configure Limio Data Layer](/product/analytics/how-to-configure-the-limio-data-layer-to-collect-user-events-for-analytics.md)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.limio.com/integrations/other-integrations/custom-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
