# PayKickstart via Zapier

> Follow this step-by-step guide to set up PayKickstart with Zapier with AnyTrack. Learn how to configure tracking, set up postback URLs, and enable accurate conversion attribution for your campaigns.

This guide is for merchants selling products and services on PayKickstart. For affiliates, follow the PayKickstart integration guide instead.

This guide assumes familiarity with Zapier and that the AnyTrack tag runs on your website. 

First step is to update your checkout URL according to the instructions below:

**Your checkout URL should look like:**

```http
https://app.paykickstart.com/checkout/123
```

Update the URL with `?`click_id`=--CLICK-ID--`

```http
https://app.paykickstart.com/checkout/123?`click_id`=--CLICK-ID--
```

When the landing page loads, the AnyTrack tag substitutes the placeholder `--CLICK-ID--` with a unique value.

## Zapier Setup

<Image align="center" className="border" border={true} src={readmeAsset1} />

1. Create a new Zap
2. Select PayKickstart
3. Select the event to send to AnyTrack
4. Test a real event:
   - Activate test in Zapier
   - Open a new browser window (preferably clean)
   - Navigate to your landing page as a real visitor
   - Go through your funnel including a purchase/test purchase
   - Return to Zapier to see the test result and map event data

### Map the AnyTrack Click ID to the PayKickstart Custom Variable

To pass the conversion from Zapier to AnyTrack, create a custom conversion source in the Integration Catalog.

**From PayKickstart API documentation:**

Field names prefixed with `custom` in the IPN POST are custom fields set in the checkout page URL. For example, if your PayKickstart checkout URL is `https://app.paykickstart.com/checkout/123`, add additional information as GET variables:

```
 https://app.paykickstart.com/checkout/123?var1=123&var2=email@user.com
```

These custom variables are returned in the IPN POST as:

```
custom_var1 = 123
custom_var2 = email@user.com
```

If you add the custom variable to your checkout URL:

```http
https://app.paykickstart.com/checkout/123?`click_id`=--CLICK-ID--
```

Zapier returns the value:

```
custom_click_id=a0s8d0f9a8s0df8a0sdf98
```

> 🚧 **Beware**
>
> The value `a0s8d0f9a8s0df8a0sdf98` is an example

1. Return to AnyTrack and copy the webhook from the custom integration\
   ![Copy your Webhook URL and paste it in your integration](./screenshot-f2af7c33-2c5c-4468-bceb-f48a25192866-jul-25-2022-05-17-51-4-41264a8972.jpg)
2.  Remove all parameters from the URL including the question mark and copy the webhook URL
3. Return to Zapier
4. Select the Action **Webhook Post**
5. Paste the **AnyTrack Webhook**
6. Map the data according to the standard event parameters (list [here](https://support.anytrack.io/knowledge/what-are-AnyTrack-standard-tracking-parameters))

![](./screen-shot-2022-12-26-at-7-31-08-pm-png-ade6656f68.png)

> #### [Get SamCart Conversions Events to AnyTrack using Webhooks by Zapier.](https://zapier.com/shared/get-samcart-conversions-events-to-AnyTrack-using-webhooks-by-zapier/e7dfb776d2a843d23b3dc99bf092b620e84f42b1)
>
> Track your new SamCart Orders in real-time by setting up this Samcart to AnyTrack Zap. Once set up, Zapier will send conversion data to your AnyTrack account every time someone makes a Purchase in your SamCart account so you can improve your Ads ROAS with accurate Ads attribution, behavioral audience building and clear customer journey.

Update your checkout URL according to the instructions below

```http
https://app.paykickstart.com/checkout/123
```

You can add additional information to the URL in the form of GET variables like this:

```http
https://app.paykickstart.com/checkout/123?**var1**\=123&**var2**\=email@user.com
```

For AnyTrack data to pass to the PK checkout page

```http
https://app.paykickstart.com/checkout/123?click\_id=--CLICK-ID--
```

### Conversion tracking:

1. Create a new zap
2. Select Paykickstart
3. Select the event you wish to track
4. Test a real event - meaning you need to make a test conversion after you

## Related Articles

- [SamCart Integration via Zapier](/docs/samcart-via-zapier)
- [Elementor via Zapier Webhook](/docs/elementor-zapier-webhook)
- [Install AnyTrack Tag](/docs/install-anytrack-tag)
