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

# Intégration des templates

> Ajouter le bouton Kleep, le tracking checkout et le tracking confirmation à vos templates SFRA

<Note>
  Toutes les modifications ci-dessous sont déjà incluses dans `int_kleep_sfra`. Si vous avez surchargé ces templates dans votre cartouche de marque personnalisée, vous pouvez supprimer les versions Kleep de `int_kleep_sfra/cartridge/templates/default`.
</Note>

## Bouton Kleep (PDP + Tracking produit)

Ajoutez dans les deux fichiers suivants :

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

Placez **juste avant** :

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

Vous pouvez dupliquer la balise `<isinclude>` n'importe où sur la PDP — tous les boutons partagent un seul iframe/modal.

## Tracking paiement

Ajoutez à votre template de paiement :

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

Placez **juste après** :

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

## Tracking confirmation

Ajoutez à `app_custom_brand/.../checkout/confirmation/confirmation.isml` :

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

Placez **juste après** :

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