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

# Skabelonintegration

> Tilføj Kleep-knappen, checkout-sporing og bekræftelsessporing til dine SFRA-skabeloner

<Note>
  Alle ændringer nedenfor er allerede inkluderet i `int_kleep_sfra`. Hvis du har tilsidesat disse skabeloner i din brugerdefinerede brand-cartridge, kan du fjerne Kleep-versionerne fra `int_kleep_sfra/cartridge/templates/default`.
</Note>

## Kleep-knap (PDP + Produktsporing)

Tilføj til begge:

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

Placer **umiddelbart før**:

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

Du kan duplikere `<isinclude>`-tagget overalt på PDP — alle knapper deler en enkelt iframe/modal.

## Checkout-sporing

Tilføj til din checkout-skabelon:

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

Placer **umiddelbart efter**:

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

## Bekræftelsessporing

Tilføj til `app_custom_brand/.../checkout/confirmation/confirmation.isml`:

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

Placer **umiddelbart efter**:

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