# Moving Intelligems Script Location Below importmap

If you are seeing the below error in your Intelligems app:

This means the we have detected that your Shopify theme utilizes a feature called `importmap`. In the case that a Shopify theme is using `importmap`, the Intelligems script must be placed after the `importmap` script in your theme.liquid file.

Here are the steps to make this change:

1. Locate where the Intelligems script is currently located in your theme.liquid file by doing Command + f and searching for Intelligems. It should look something like the below, but "123456789" will be your account ID.

```html
<script>
    window.Shopify = window.Shopify || {theme: {id: {{ theme.id }}, role: '{{ theme.role }}' } };
    window._template = {
        directory: "{{ template.directory }}",
        name: "{{ template.name }}",
        suffix: "{{ template.suffix }}"
    };
 </script>
<script type="module" fetchpriority="high" src="https://cdn.intelligems.io/esm/123456789/bundle.js"></script>
```

2. Select the full script - copy it to your clipboard and delete it from that location in your `theme.liquid` file.
3. Locate where the `importmap` script is currently located in your theme.liquid file by doing Command + f and searching for `importmap`. It should look something like the below:

```html
<script type="importmap">{
        "imports": {
          "vendor": "",
          "theme": "",
          "photoswipe": ""
        }
      } 
</script>
```

4. Paste the full Intelligems script below the importmap script.
5. Save your changes.

If you have any questions, please reach out to our support team for assistance [here](https://portal.usepylon.com/intelligems/forms/intelligems-support-request)!


---

# 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.intelligems.io/getting-started/moving-intelligems-script-location-below-importmap.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.
