# AnyTrack Multiaccount

> AnyTrack is a conversion tracking and attribution platform that helps digital marketers, affiliate marketers, and eCommerce marketers improve ROAS by streamlining conversion data.

## AnyTrack Integration Overview

AnyTrack is a conversion tracking and analytics platform that integrates with Google Ads, Facebook `Conversion API`, TikTok API, and more. Track every user interaction on your website to measure ROI across multiple channels. Send detailed data from AnyTrack directly to other platforms for real-time insights into campaign performance.

### How AnyTrack Multiaccount Integration Works

1. **Traffic**: AnyTrack collects traffic source and first-party data when visitors land on your website
2. **Engagements**: When visitors click AnyTrack affiliate links, AnyTrack collects granular `OutboundClick` data and triggers Event Tracking API requests to your Tracking Tags and analytics
3. **Conversions**: AnyTrack receives real-time conversion data through webhook when visitors convert on the merchant's website
4. **Attribution**: AnyTrack processes conversion data and reports it across the AnyTrack Dashboard
5. **Conversion API**: AnyTrack sends conversions to your **Ad Platforms' Conversion API** for machine learning and automatic optimization based on 100% of your conversion data

### Technical Details

| Reference       | Value      | Information                                                                  |
| --------------- | :--------- | :--------------------------------------------------------------------------- |
| Tracking Group  | `AnyTrack` | Use this to activate <Glossary>AutoTag</Glossary>                            |
| Subid Parameter | `atrefid`  | Passes the AnyTrack `click_id`                                               |
| Tracking Method | `Webhook`  | Conversion data is sent via webhook                                          |

### Standard Conversions

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

### The AnyTrack Webhook

The Webhook is fully pre-defined and ready to be implemented with your AnyTrack account.

```http
https://t1.anytrack.io/hBtoE3hN/collect/anytrack-test
```

> ❗ ****
>
> The AnyTrack integration requires that the AnyTrack Tracking Tag in the `head` section of your website or landing pages. Learn now to [Install the AnyTrack Tag](install-AnyTrack-tag) on your website.

## Setup Guide

### Step 1: Add AnyTrack to Your Account

1. Go to [Integration Catalog](https://dashboard.anytrack.io/catalog/) and search for AnyTrack

2. Click the [AnyTrack card](https://dashboard.anytrack.io/catalog/anytrack) and click **Install**

### Step 2: Connect Your AnyTrack Account

1. Copy the predefined postback URL

2. Go to your [property webhook settings](https://dashboard.anytrack.io/webhooks)

3. Click **New Webhook**

4. Paste the postback URL in the Webhook URL field

5. Choose the events you want to send

6. Save

### Step 3: Adjust Event Mapping

Event Mapping defines which events to track and maps them to Conversion Events you'll forward to your Ads Integrations (e.g., Facebook `Conversion API`)

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

***

## Validate your integration

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

### Link Tracking

Verify that your links are tracked and AutoTagged since tracking starts when visitors click offer links.

### 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 `atrefid` & `click_id` data to affiliate links. Learn [more about AutoTag](autotag).
</Callout>

* **Default**: AnyTrack automatically identifies and AutoTags AnyTrack links on your website
* **AutoScan**: AnyTrack scans links embedded in redirect plugins and AutoTags them accordingly
* **Manual**:
  * **Tracking Group Attribute**: Add the tracking group attribute to links: `data-tracking-group="AnyTrack"` or `rel="AnyTrack"`. More about [Tracking Group](tgid).
  * **Click ID Token**: Manually append `&atrefid=--CLICK-ID--` to the offer link

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

**Example of manually updating links from `AnyTrack`:**

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

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

> 📘 **Tracking**
>
> Tracking Group refers to the integration technology. For example, AnyTrack <Glossary>Tracking Group</Glossary> is `AnyTrack` and ClickBank is `ClickBank`.

### Conversion Tracking

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

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

**AnyTrack conversion payload example**

```json

{
  "AnyTrack": "1100l35864",
  "customer_type": "existing",
  "country": "US",
  "referer": "https://www.chewy.com/",
  "search_keyword": null,
  "search_engine_id": null,
  "conversion_time": "1684692689",
  "`conversion_id`": "1011l2002827904",
  "publisher_reference":"mz7yYainzaN6hkc52QVBg",
  "publisher_commission": "10.57",
  "creative_id": "0",
  "source_referer": null,
  "advertiser_reference": null,
  "conversion_type": "1",
  "creative_type": "0",
  "conversion_reference": "1354998698",
  "metadata_query_string": null,
  "currency": "USD",
  "tracking_method": "clickref",
  "value": "52.85",
  "items": [
    {
      "item_code": null,
      "item_id": "1011l860699483",
      "item_sku": "332503",
      "item_commission": "3.5720",
      "item_type": "S",
      "item_gp": null,
      "item_publisher_commission": "3.5720",
      "item_meta": null,
      "item_status": "1",
      "item_value": "17.8600",
      "item_category": "11130",
      "item_vertical": null
    },
    {
      "item_code": null,
      "item_id": "1011l860699484",
      "item_sku": null,
      "item_commission": "0.0000",
      "item_type": "S",
      "item_gp": null,
      "item_publisher_commission": "0.0000",
      "item_meta": null,
      "item_status": "1",
      "item_value": "0.0000",
      "item_category": "COMMISSION",
      "item_vertical": null
    },
    {
      "item_code": null,
      "item_id": "1101l859617416",
      "item_sku": "677350",
      "item_commission": "6.9980",
      "item_type": "S",
      "item_gp": null,
      "item_publisher_commission": "6.9980",
      "item_meta": null,
      "item_status": "1",
      "item_value": "34.9900",
      "item_category": "2802",
      "item_vertical": null
    }
  ],
  "campaign_id": "1100l517",
  "query_string": null,
  "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1"
}

```

***

## Related Resources

- [Advanced Options](/docs/advanced-options-ms-ads)
- [Other Ad Networks](/docs/other-ad-networks)
- [Reddit UTM Parameters](/docs/reddit-ads)

## FAQ & Troubleshooting

* **Can I import past conversions into AnyTrack?** No. AnyTrack ingests only conversions triggered following a visitor session on your website.
* **Can I track direct linking campaigns?** Yes, but this requires custom setup. See this [article](deeplink).
* **Can I use a different `subid` parameter?** No, use the AnyTrack predefined parameter.
* **Can I track conversions without the `click_id`?** No. The `click_id` passed to AnyTrack links is required for conversion tracking.
* **How do I change the Conversion Event Name?** Update Event Mapping on the Integration page.

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

## Troubleshoot Errors

### General Troubleshooting

* Verify your Tracking Tag is in the `head` section of your website
* If on the free plan, verify you haven't reached the monthly traffic limit and [upgrade](https://dashboard.anytrack.io/billing) if needed

### Conversion Sources

When conversions aren't tracking or most trigger errors, follow the guidelines below.

> 🚧 **Before**
>
> Inspect the [conversion log](integration-event-log) to identify error types and troubleshoot using these guidelines.

### Native Integrations

Native integrations are predefined in the catalog and should provide error-free data flow. The most common error is an unknown or missing `click_id` when AutoTag couldn't be activated.

* Verify links are not hidden behind JavaScript or double redirects
* Check that links are in standard `a` elements
* Try manually setting the tracking group attribute (see integration guidelines)
* Verify offers aren't getting traffic from sites without the AnyTrack Tag
* If newly installed, errors may be from traffic not yet tracked by AnyTrack

**Conversion data shows no error but isn't validated:**

* Verify the webhook in the integration matches the predefined webhook
* Copy the Event Reference from the Conversion Event Log and contact [support](contact-support)

**Not receiving any conversions:**

* Verify the webhook is set and active in your platform
* Check that you're passing the correct `atrefid` parameter to the offer link
* Verify the postback URL is correctly inserted in the custom integration
