> For the complete documentation index, see [llms.txt](https://guide.tiledesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.tiledesk.com/web-integrations/how-to-install-the-tiledesk-live-chat-widget-on-a-magento-website.md).

# How to Install the Tiledesk Live Chat Widget on a Magento Website

#### Step 1: Access your Magento Admin Panel <a href="#step-1-access-your-magento-admin-panel" id="step-1-access-your-magento-admin-panel"></a>

Log in to your Magento Admin Panel using your credentials.

#### Step 2: Navigate to the "Design" Section

Once logged in, navigate to the "Design" section and click on Configuration.

#### Step 3: Select the appropriate store view

Find the appropriate store view that you want to configure and click Edit in the action column.

#### Step 4: Edit the store view and insert the Tiledesk live chat widget JavaScript code

Expand section HTML Head paste the widget code into the Scripts and Style Sheets field and press the Save configuration button.

This is an example of the widget code:

**\<script type="application/javascript">**\
**window\.tiledeskSettings=**\
**{**\
**projectid: "\<project-ID>"**\
**};**\
**(function(d, s, id) {**\
**var w=window; var d=document; var i=function(){i.c(arguments);};**\
**i.q=\[]; i.c=function(args){i.q.push(args);}; w\.Tiledesk=i;**\
**var js, fjs=d.getElementsByTagName(s)\[0];**\
**if (d.getElementById(id)) return;**\
**js=d.createElement(s);**\
\*\*js.id=id; js.async=true; js.src="<https://widget.tiledesk.com/v6/launch.js";**\\>
**fjs.parentNode.insertBefore(js, fjs);**\
**}(document,'script','tiledesk-jssdk'));**\
**\</script>**

Please remember to use your project ID. You'll find the code anytime in Settings > Widget > Installation section.

#### Step 6: Save the Changes and Check the Result

Once you've inserted the code, go to System > Cache management, select ALL checkboxes, and press the Refresh/Submit button.

Finally save the settings and check the result by visiting your Magento site. The Tiledesk live chat widget should now be visible on the page where you inserted the code.

Make sure to test the functionality of the widget to ensure it works correctly and is positioned exactly where you want it on your Magento site.


---

# 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://guide.tiledesk.com/web-integrations/how-to-install-the-tiledesk-live-chat-widget-on-a-magento-website.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.
