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

# Integracja szablonów

> Dodaj przycisk Kleep, śledzenie w kasie i śledzenie potwierdzeń do szablonów SFRA

<Note>
  Wszystkie poniższe zmiany są już zawarte w `int_kleep_sfra`. Jeśli nadpisałeś te szablony w swoim niestandardowym kartridżu marki, możesz usunąć wersje Kleep z `int_kleep_sfra/cartridge/templates/default`.
</Note>

## Przycisk Kleep (PDP + śledzenie produktów)

Dodaj do obu:

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

Umieść **bezpośrednio przed**:

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

Możesz powielić tag `<isinclude>` w dowolnym miejscu na PDP — wszystkie przyciski współdzielą jeden iframe/modal.

## Śledzenie w kasie

Dodaj do swojego szablonu kasy:

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

Umieść **bezpośrednio po**:

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

## Śledzenie potwierdzenia

Dodaj do `app_custom_brand/.../checkout/confirmation/confirmation.isml`:

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

Umieść **bezpośrednio po**:

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