> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kleep.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Integração de Templates

> Adicione o botão Kleep, o tracking de checkout e o tracking de confirmação aos seus templates SFRA

<Note>
  Todas as alterações abaixo já estão incluídas em `int_kleep_sfra`. Se tiver substituído estes templates no seu cartridge de marca personalizada, pode remover as versões Kleep de `int_kleep_sfra/cartridge/templates/default`.
</Note>

## Botão Kleep (PDP + Tracking de Produto)

Adicione a ambos:

* `app_custom_brand/.../experience/components/dynamic/product/productDetails.isml`
* `app_custom_brand/.../product/productDetails.isml`

```html theme={null}
<iscomment> CUSTOM KLEEP </iscomment>
<isinclude template="product/components/kleepButton" />
```

Coloque **imediatamente antes de**:

```html theme={null}
<!-- Attributes and Quantity -->
<isinclude template="product/components/mainAttributes" />
```

Pode duplicar a tag `<isinclude>` em qualquer lugar do PDP — todos os botões partilham um único iframe/modal.

## Tracking de Checkout

Adicione ao seu template de checkout:

```html theme={null}
<iscomment> CUSTOM KLEEP </iscomment>
<isinclude template="common/kleepTracking" />
```

Coloque **imediatamente após**:

```html theme={null}
<!-- Step 3: Payment and Billing-->
<isinclude template="checkout/billing/billing" />
```

## Tracking de Confirmação

Adicione a `app_custom_brand/.../checkout/confirmation/confirmation.isml`:

```html theme={null}
<iscomment> CUSTOM KLEEP </iscomment>
<isinclude template="checkout/confirmation/kleepCheckoutCompletedTracking" />
```

Coloque **imediatamente após**:

```jsx theme={null}
<isscript>
var assets = require('*/cartridge/scripts/assets.js');
assets.addCss('/css/checkout/checkout.css');
assets.addJs('/js/checkoutRegistration.js');
</isscript>
```
