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

# Integrazione Template

> Aggiungi il pulsante Kleep, il tracciamento checkout e il tracciamento conferma ai tuoi template SFRA

<Note>
  Tutte le modifiche seguenti sono già incluse in `int_kleep_sfra`. Se hai sovrascritto questi template nel tuo cartridge brand personalizzato, puoi rimuovere le versioni Kleep da `int_kleep_sfra/cartridge/templates/default`.
</Note>

## Pulsante Kleep (PDP + Tracciamento Prodotto)

Aggiungi a entrambi:

* `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" />
```

Posiziona **immediatamente prima**:

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

Puoi duplicare il tag `<isinclude>` ovunque nella PDP — tutti i pulsanti condividono un singolo iframe/modal.

## Tracciamento Checkout

Aggiungi al tuo template di checkout:

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

Posiziona **immediatamente dopo**:

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

## Tracciamento Conferma

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

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

Posiziona **immediatamente dopo**:

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