# How to connect Batch to AT Internet

## A. Tracking Web Push notifications

To track Batch web campaign opens in AT Internet:

#### 1. Create an `xtor` parameter in AT Internet

1. Open AT Internet.
2. Go to: `Settings > Settings > Custom Marketing Campaign`.
3. Create a **Source** (e.g., "Push Campaign").
4. Create a **Campaign** using that source.
5. Note the `xtor` parameter associated with your campaign.

#### 2. Add the `xtor` to your Batch deeplink

Append the `xtor` parameter to your deeplink URL. For example:

```
https://mywebsite.com/item?xtor=CS1-123-label1-label2-label3
```

<figure><img src="https://2998247023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbwlQFpRAhaFR79zae6Jf%2Fuploads%2F87PnpwX0uqJEtZGg7Iuu%2F3rdpartyintegrations_atinternetxtordeeplink_19042025.png?alt=media&#x26;token=608edcbd-10a2-48bb-ad12-5d196a9259f0" alt="Image shows the Batch dashboard&#x27;s web push notification creation module, highlighting how to insert xtor parameters in the deeplink field to track campaigns in AT Internet."><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** `xtor` values must not exceed 250 characters and cannot contain special characters. See AT Internet documentation for formatting guidelines.
{% endhint %}

Once configured, AT Internet will attribute visits to this campaign as a traffic source.

***

## B. Tracking Mobile Push and In-App messages

To track mobile push and In-App messaging campaigns in AT Internet, use Batch's built-in event dispatcher.

#### 1. Install the AT Internet Dispatcher

{% hint style="info" %}
Event dispatchers are supported starting from Batch SDK version 1.15.
{% endhint %}

AT Internet dispatchers use the `xtor` parameter to send events to AT Internet.

* Refer to the technical documentation for installation:
  * [Android SDK documentation](https://doc.batch.com/developer/sdk/android/event-dispatchers/at-internet)
  * [iOS SDK documentation](https://doc.batch.com/developer/sdk/ios/event-dispatchers/at-internet)

{% hint style="info" %}
The dispatcher does not support AT Internet's Marketing Campaigns v2 JavaScript syntax, which is not available on Android or iOS.
{% endhint %}

***

#### 2. Create the `xtor` parameter

As with web tracking, create a Custom Marketing Campaign in AT Internet. This will generate the `xtor` parameter you need for linking.

***

#### 3. Link the Batch campaign to the AT Internet campaign

**Push campaigns**

The dispatcher reads the `xtor` from:

* The deeplink URL
* The custom payload

If both are present, the custom payload value takes priority.

<figure><img src="https://2998247023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbwlQFpRAhaFR79zae6Jf%2Fuploads%2FKYaJIkQ4jA9fZW3fkyH2%2F3rdpartyintegrations_atinternetxtordeeplinkmobile_19042025.png?alt=media&#x26;token=3ce22a42-7426-4b9c-bfc9-9937c458d22e" alt="Image shows the Batch dashboard&#x27;s mobile push notification creation module, highlighting how to insert xtor parameters in the deeplink field to track campaigns in  AT internet."><figcaption></figcaption></figure>

**In-App and Mobile Landing campaigns**

The dispatcher reads the `xtor` from:

* The deeplink URL
* The **Tracking ID** field of the campaign

Once configured, AT Internet will track relevant events triggered by the campaign.

{% hint style="info" %}
AT Internet and Batch handle campaign tracking differently. AT Internet only allows a single campaign to be associated with a user session, while Batch can trigger multiple campaigns. To ensure complete tracking, Batch sends events to both:

* The Marketing Campaign Module, which shows the first campaign of the session (available under Traffic Sources > Marketing Sources and Content > Pages).
* The On-site Ads Module, which displays additional campaigns triggered during the session (available under Content > On-site Ads > Publisher Campaigns).

This setup ensures that all Batch campaigns are visible in AT Internet, even when multiple are triggered in a single session.
{% endhint %}
