# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
