> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.marketcall.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Keitaro Integration for Leads

###### Initial Step: Connecting Domain with Marketcall Keitaro
**Working with CPL (Cost Per Lead) offers in Keitaro is simple. Follow these steps mentioned below.**

**Step 1. Go to** [__MarketCall - System :: Automation :: Keitaro Integration__](https://www.marketcall.com/v2/affiliate/integrations/keitaro)
Create new user, remember password.

**Step 2. Log in **to https://track.marketcall.com/admin/
Use the same credentials used to create the account.

**Step 3. Add your domain** in https://track.marketcall.com/admin/#!/domains
In your domain registration panel add **A record**, host **@**, value  **31.172.69.163**

| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image_1lf9ulx.png =800x364) |

# Implementation with Keitaro

###### Step 01: Get Tracking Link from Marketcall
Go to your campaign page and copy the tracking (traffic) link.
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image_68tfw9.png =700x302) |

###### Step 2: Create Campaign in Keitaro
Go to campaigns tab in Keitaro and click on **`Create`** button.

1. Assign a clear and offer related campaign name to your campaign.
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image_8gy7to.png =700x65) |


2. Select **Facebook.com (Marketcall) **as the traffic source.
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image-1_d3ccar.jpg =600x64) |


3. Navigate to the **Parameters** tab. 
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image_1d4dzfw.png =600x96) |


4. **Follow this if you're using landing page**: Locate the **`offerlink`** parameter and set its value to your Marketcall tracking link (excluding the `https://` prefix). If the parameter does not exist, create a new one by entering **`offerlink`** in the second field and your tracking link in the third field (as shown in the screenshot). 
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image_6poddi.png =700x51) |

* Note: If you are using a landing page, ensure that it is optimized for CPL (lead) offers. You can review the landing pages yourself or contact your manager for LP recommendations.
* If you want to split test several CPL offers, you need to create offers in Keitaro, that represent each tracking link, then create separate campaign in Keitaro, in flows choose those offers. Then copy tracking link of new Keitaro campaign and insert it to **`offerlink`** value. 


5. Now click on **`Create Flow`** Button. 
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/flow_12arpm6.jpg =324x50) |



6. **If you're not using landing pages**: Please navigate to the **`Schema`** tab, and select the **`Direct URL`** option.
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image-2_xgeui9.jpg =700x118) |



7. Leave the **`Redirect type`&#160;**set to **`HTTP-redirect`** (default). In the **URL** field, paste your Marketcall tracking link, followed by:
```
?subid={subid}&fbclid={fbclid}
```
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image-3_lqps2l.jpg =700x122) |


8. Now, click **`Create/Save`** button. 
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image_11yjss7.png =325x50) |



9. Go to the Tracking tab of your Keitaro campaign and copy the **tracking link**, ensuring that the tracking method is set to **JS-generated link**. You can then use this link in your ads, such as Facebook advertising.
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image_it9vl4.png =700x175) |


###### Step 3: Adding Postback

* Add Postbacks by clicking on this URL 👉  [**__Marketcall - Adding Postback__**](https://www.marketcall.com/affiliate/postbacks/create)
* Add first **postback** for all campaigns with **`Created`** trigger
```
https://track.marketcall.com/ade42fc/postback?subid={subid}&payout={earn}&status={state_title}&currency=USD&from=Marketcall&tid={lead_id}
```
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image_1affmhx.png =700x318) |

* Add another **postback** for all campaigns with **`Updated`** trigger
```
https://track.marketcall.com/ade42fc/postback?subid={subid}&payout={earn}&status={state_title}&currency=USD&from=Marketcall&tid={lead_id}
```
| ![](https://storage.crisp.chat/users/helpdesk/website/-/c/c/1/8/cc18bc9ffe16e000/image_1p79ktj.png =700x348) |


