# 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="/files/qY0Q8OcKp8dAOpV4PdZ9" 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="/files/k0MY6Xn6FtAWcVfGDcJ9" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.batch.com/integrations/analytics/how-to-connect-batch-to-at-internet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
