# PepperJam

> The article provides an overview of the integration between AnyTrack.io and PepperJam, highlighting its ability to simplifies conversion data tracking and synchronization with major ad platforms like Google Ads, Facebook `Conversion API`, and TikTok API. This integration allows marketers to efficiently measure performance across multiple channels from a single dashboard, enhancing ROI through precise tracking and actionable insights. Key features include real-time conversion data processing, event tracking, and the use of AutoTag for automatic data flow, making it a reliable solution for online advertisers.

## PepperJam Integration Overview

AnyTrack.io and PepperJam are proud to announce a powerful integration that allows users to access valuable conversion data from the PepperJam platform, automatically forward it to AnyTrack, and then sync it with platforms like Google Ads, Facebook `Conversion API` and TikTok API.The combination of accurate tracking data provided by AnyTrack combined with actionable insights delivered by PepperJam provides an unbeatable solution for online advertisers who want better ROI on their ad campaigns.

<Prerequisites
  title="Before you begin"
  items={[
    { label: "You have an AnyTrack account with a paid subscription", done: true },
    { label: "You have an active PepperJam affiliate account", done: true },
    { label: "The AnyTrack <code>Tracking Tag</code> is installed on your website", done: true },
  ]}
/>

<br />

### How does the PepperJam AnyTrack integration work:

1. **Traffic**: When visitors land on your website, AnyTrack collects traffic source data and First Party data.
2. **Engagements**: When visitors click on your PepperJam affiliate links, AnyTrack does a few things:
   1. Collects granular data tied to the `OutboundClick`.
   2. Triggers Event Tracking API requests to your Tracking Tags and analytics.
3. **Conversions:** When visitors convert on the merchant's website, AnyTrack receives real time conversion data through API Integration.
4. **Attribution:** AnyTrack processes the conversion data and reports it across various reporting sections of the AnyTrack Dashboard.
5. **`Conversion API`:** AnyTrack then sends your conversions to your **Ad Platforms' `Conversion API`** so you can feed your ad platform's Machine Learning, AI and automatic optimization according to 100% of your conversion data.

### Technical details

| Reference       | Value             | Information                                                                        |
| --------------- | :---------------- | :--------------------------------------------------------------------------------- |
| Tracking Group  | `pepperjam`       | The Tracking Group reference can be used to activate <Glossary>AutoTag</Glossary>. |
| Subid Parameter | `sid`             | The Subid Parameter used to pass the AnyTrack `click_id`.                          |
| Tracking Method | `API Integration` | You need to provide your API Key                                                   |

### Standard Conversions

| Event Name      | Details                                            | Data Source     |
| :-------------- | :------------------------------------------------- | :-------------- |
| `OutboundClick` | When a visitor clicks on PepperJam offer links.    | AnyTrack JS Tag |
| `Lead`          | When a free registration is recorded in PepperJam. | API Integration |
| `Purchase`      | When a user generates a commission in PepperJam.   | API Integration |

### The PepperJam API Integration

The API Integration requires your account details and API key to connect to your account.

```json
{
  "transaction_id": "177087659",
  "date": "2023-05-20 13:28:50",
  "new_to_file": "Yes",
  "program_name": "Litter-Robot",
  "program_id": "9800",
  "type": "sale",
  "sid": "Zojr5qPF3fVkeCAhvHstXinB65kcdlN51i",
  "publisher_referral_url": null,
  "sub_type": null,
  "creative_type": "generic",
  "commission": "76.40",
  "`order_id`": "1001994362",
  "sale_amount": "764.00",
  "status": "pending"
}
```

## Setup Guide

### Step #1: Add PepperJam to your AnyTrack Account

1. Go to the **[Integration Catalog](https://dashboard.anytrack.io/catalog/)**, search for PepperJam.

2. Now click on the [PepperJam card](https://dashboard.anytrack.io/catalog/pepperjam)and then Click on Install.

### Step #2: Connect your PepperJam account

1. Access your [PepperJam API credentials](https://ascend.pepperjam.com/affiliate/api/)
2. Copy the API Key
3. Return to AnyTrack settings and Paste your API Key
4. Save

### Step #3: Adjust the Conversion Event Mapping

The Event Mapping allows you to define which events to track and map them to Conversion Events you will forward to your Ads Integrations (e.g., Facebook `Conversion API`)

***

## Validate your integration

This section will enable you to validate the main aspects of your setup.

<Callout icon="🔎" theme="default">
  ### Install the AnyTrack Pixel Helper Extension

  Install the [AnyTrack Pixel Helper](https://chromewebstore.google.com/detail/anytrack-pixel-helper/ojmhkmdpagjeopleoeihbhgejcfoijjn) Chrome extension to verify the AnyTrack Tag is installed on your website. It also shows connected ad platforms and browser-side events. [View the Pixel Helper guide](/docs/anytrack-chrome-extension).
</Callout>

### Link tracking

Since Tracking starts when visitors clicks on offer links, you verify that your links are tracked and AutoTagged.

### AutoTag Methods

<Callout icon="🔥" theme="default">
  ### Reminder about AutoTag:

  **AutoTag** is a function that is enabled by default through the AnyTrack Tracking Tag, and that appends `sid` & `click_id` data to affiliate links. Learn [more about AutoTag](/docs/autotag).
</Callout>

* **Default**: By default, AnyTrack automatically identifies and AutoTags PepperJam links found on your website.
* **AutoScan**: AnyTrack scans links that are embedded in redirects plugins and AutoTags them accordingly.
* **Manual**:
  * **Tracking Group Attribute**: You add the tracking group attribute to links according to their tracking requirements. For example: `data-tracking-group="pepperjam"` or `rel="pepperjam"`. More about [Tracking Group](/docs/tgid).
  * **Click ID Token:** You Manually append the `subid`: `&sid=--CLICK-ID--` to the offer link.

Once the links are set up, you can check in your PepperJam account reports and see whether the `sid` parameters are passed to the offer links.

**Here is an example of how you would manually update links from`pepperjam`:**

```html
<a href="https://example.foo/goto/pepperjam" data-tracking-group="pepperjam">Hover on thePepperJam Demo   
Link to see the AnyTrack `click_id`</a>
```

<HTMLBlock html={"\n<a href=\"https://example.foo/goto/pepperjam\" data-tracking-group=\"pepperjam\">Hover on the PepperJam Demo Link to see the AnyTrack <code>click_id</code></a>\n"} />

> 📘 **Tracking**
>
> Tracking Group refers to the integration technology. For example, PepperJam <Glossary>Tracking Group</Glossary> tracking group is `pepperjam` and ClickBank is `ClickBank`. <Glossary>The Tracking Group</Glossary>

### Conversion Tracking

To validate your setup, you wait for a conversion or trigger a test conversion yourself and inspect the conversion logs.

**PepperJam conversion payload example**

```json

{
  "transaction_id": "177087659",
  "date": "2023-05-20 13:28:50",
  "new_to_file": "Yes",
  "program_name": "Litter-Robot",
  "program_id": "9800",
  "type": "sale",
  "sid": "Zojr5qPF3fVkeCAhvHstXinB65kcdlN51i",
  "publisher_referral_url": null,
  "sub_type": null,
  "creative_type": "generic",
  "commission": "76.40",
  "`order_id`": "1001994362",
  "sale_amount": "764.00",
  "status": "pending"
}

```

***

<FaqAccordion
  title="FAQ and Troubleshooting"
  icon="fa-duotone fa-circle-question"
  items={[
    {
      question: "Can I import past conversions into AnyTrack?",
      answer: "No. AnyTrack can only ingest conversions that have been triggered following a visitor session on your website."
    },
    {
      question: "Can I track direct linking campaigns?",
      answer: "Yes, but this requires a custom setup. Please refer to this <a href='/docs/deeplink'>article</a>."
    },
    {
      question: "Can I use a different <code>subid</code> parameter than the one predefined by AnyTrack?",
      answer: "No."
    },
    {
      question: "Can I track conversions without the <code>click_id</code>?",
      answer: "No. The <code>click_id</code> passed to the PepperJam links is required to track conversions."
    },
    {
      question: "The Conversion Event Name is not what I am expecting, how can I change it?",
      answer: "You can update the Event Mapping in the Integration page.  "
    }
  ]}
/>
