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

# Mallintegration

> Lägg till Kleep-knappen, kassa-spårning och bekräftelsespårning i dina SFRA-mallar

<Note>
  Alla ändringar nedan ingår redan i `int_kleep_sfra`. Om du har åsidosatt dessa mallar i din anpassade varumärkespatron kan du ta bort Kleep-versionerna från `int_kleep_sfra/cartridge/templates/default`.
</Note>

## Kleep-knappen (PDP + produktspårning)

Lägg till i båda:

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

Placera **precis före**:

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

Du kan duplicera `<isinclude>`-taggen var som helst på PDP — alla knappar delar en enda iframe/modal.

## Kassaspårning

Lägg till i din kassasmall:

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

Placera **precis efter**:

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

## Bekräftelsespårning

Lägg till i `app_custom_brand/.../checkout/confirmation/confirmation.isml`:

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

Placera **precis efter**:

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