# Integrations

Integrations let you add custom code to theme and email templates.

Integrations let you add custom code to theme and email templates.

Each integration can contain three templates:

1. The head template
2. The body template
3. The email template

Where does the generated code appear?

1. The head template is inserted into theme templates directly before the `</head>` tag.
2. The body template is inserted into theme templates directly before the `</body>` tag.
3. The email template is inserted into HTML email templates directly before the `</body>` tag.

Integrations can also have options or settings that the merchant can (or must) fill in. This is useful when the templates depend on merchant settings, for example account IDs for tracking services.

Inside an integration template, the settings are available through the **integration** variable. If there is a setting with the key "account_id", you access it like this:

```liquid
{{ integration.settings["account_id"] }}
```

All other Liquid variables, filters and tags of the template are available as well.

#### Partner area

Integrations are created in the partner area. Merchants then activate and configure them in the shop admin under "Integrations".
