# Dr. Cash

> The article provides an overview of the integration between Dr. Cash and AnyTrack, highlighting how it enables secure transfer of conversion data from Dr. Cash to AnyTrack for optimization on platforms like Google Ads, Facebook, and TikTok. It explains the process of tracking traffic, engagements, and conversions, and how AnyTrack uses this data to enhance ROI for advertisers and earnings for publishers.

## Dr. Cash Integration Overview

Dr. Cash is a CPA network specializing in Health and Beauty offers worldwide, supporting COD, Trial, and Straight Sale models across dozens of GEOs. The Dr. Cash and AnyTrack integration connects your affiliate conversion data to AnyTrack through a Global Postback URL, so every conversion from any offer you promote is automatically tracked and sent to ad platforms like Google Ads, Facebook Conversion API, and TikTok API.

### How does the Dr. Cash 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 Dr. Cash 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 Postback URL.
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  | `drcash`       | The Tracking Group reference can be used to activate <Glossary>AutoTag</Glossary>. |
| Subid Parameter | `sub1`         | The Subid Parameter used to pass the AnyTrack `click_id`.                          |
| Tracking Method | `Postback URL` | -                                                                                  |

### Standard Conversions

| Event Name             | Details                                                        | Data Source     |
| :--------------------- | :------------------------------------------------------------- | :-------------- |
| `OutboundClick`        | When a visitor clicks on Dr. Cash offer links.                 | AnyTrack JS Tag |
| `Lead`                 | When a conversion is on hold in Dr. Cash.                      | Postback URL    |
| `CompleteRegistration` | When a conversion is approved in Dr. Cash.                     | Postback URL    |

### The Dr. Cash Postback URL

The Postback URL is fully pre-defined and ready to be implemented with your Dr. Cash account. Dr. Cash has a Global Postback URL which will fire conversion events for all offers you are promoting. The following is an example, don't use it. You'll get your own URL when you install the integration.

```http
https://t1.anytrack.io/hBtoE3hN/collect/drcash?offer={offer}&sub1={sub1}&sub2={sub2}&sub3={sub3}&sub4={sub4}&sub5={sub5}&stream={stream}&uuid={uuid}&payment={payment}&currency={currency}&ip={ip}&status={status}
```

<Prerequisites
  title="Before you begin"
  items={[
    { label: "You can edit your website or landing pages", done: true },
    { label: "You have access to your AnyTrack account", done: true },
    { label: "You have access to your Dr. Cash account", done: true },
    { label: "The AnyTrack Tag is installed in the head section of your website", done: true },
  ]}
/>

<Callout icon="❗" theme="error">
**AnyTrack Tag required**

The Dr. Cash integration only works when the AnyTrack Tracking Tag is installed in the `head` section of your website, funnel, or landing pages. Learn how to [Install the AnyTrack Tag](/docs/install-anytrack-tag) on your website.
</Callout>

## Setup Guide

### Step #1: Add Dr. Cash to your AnyTrack Account

1. Go to the **[Integration Catalog](https://dashboard.anytrack.io/catalog/)**, search for Dr. Cash.
2. Now click on the [Dr. Cash card](https://dashboard.anytrack.io/catalog/drcash) and then Click on Install.

### Step #2: Connect your Dr. Cash account

1. Copy the predefined Postback URL from your AnyTrack account.
2. Go to your Dr. Cash account to access your event tracking settings page.
3. Click the "edit" settings button.
4. Paste the postback URL.
5. Save.

### Step #3: Check the event mapping

The Dr. Cash integration uses a fixed event mapping. AnyTrack sets the conversion event for each Dr. Cash conversion, as the events table above shows. To send a different event name to an ad platform, use the [Event mapping](/docs/event-mapping) feature of that ad integration.

***

## Validate your integration

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

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

### Link tracking

Since Tracking starts when visitors click 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 `sub1` & `click_id` data to affiliate links. Learn [more about AutoTag](/docs/autotag).
</Callout>

* **Default**: AutoTag does not detect Dr. Cash links from their URL. Add the tracking group attribute or the click ID token to each Dr. Cash link (see **Manual** below).
* **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="drcash"` or `rel="drcash"`. More about [Tracking Group](/docs/tgid).
  * **Click ID Token:** You Manually append the `subid`: `&sub1=--CLICK-ID--` to the offer link.

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

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

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

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

<Callout icon="📘" theme="info">
**Tracking**

The <Glossary>Tracking Group</Glossary> identifies which integration a link belongs to, so AutoTag knows which subid parameter to append. Dr. Cash's tracking group is `drcash`.
</Callout>

### Conversion Tracking

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

***

<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. Conversions attributed to traffic generated before AnyTrack was installed will not be tracked."
    },
    {
      question: "Can I track direct linking campaigns?",
      answer: "Yes, but this requires a custom setup. Please refer to the <a href='/docs/deeplink'>direct link tracking article</a>."
    },
    {
      question: "Can I use a different <code>subid</code> parameter than the one predefined by AnyTrack?",
      answer: "No. The integration requires the <code>sub1</code> parameter specifically."
    },
    {
      question: "Can I track conversions without the <code>click_id</code>?",
      answer: "No. The <code>click_id</code> passed to the Dr. Cash links via the <code>sub1</code> parameter is required to track conversions."
    },
    {
      question: "What do the different conversion statuses mean?",
      answer: "Dr. Cash sends four status values: <code>hold</code> (mapped to Lead), <code>approved</code> (mapped to CompleteRegistration), <code>rejected</code> (ignored), and <code>trash</code> (ignored)."
    },
    {
      question: "The Conversion Event Name is not what I am expecting, how can I change it?",
      answer: "You cannot change it in the Dr. Cash integration, because the integration uses a fixed event mapping. To send a different event name to an ad platform, use the <a href='/docs/event-mapping'>Event mapping</a> feature of that ad integration."
    }
  ]}
/>
