# AT Internet

The AT Internet dispatcher automatically dispatches events to the AT Internet SDK, including the XTOR tag when it's available.

{% hint style="warning" %}
This dispatcher should not be used in new integrations in favor of Piano Analytics
{% endhint %}

To install simply add in your app's *build.gradle*:

{% tabs %}
{% tab title="Kotlin" %}

```kts
implementation("com.batch.android:atinternet-dispatcher:3.0.1")
```

{% endtab %}

{% tab title="Groovy" %}

```groovy
implementation 'com.batch.android:atinternet-dispatcher:3.0.1'
```

{% endtab %}
{% endtabs %}

Once your dispatcher is installed, restart your app and you should see something like this in your logcat:

```
D/Batch: Batch.EventDispatcher: Adding event dispatcher: package com.batch.android.dispatcher.atinternet;
.AtInternetDispatcher
```

{% hint style="info" %}
If you can't find the line in your log, it may be due to missing dependencies, be sure to add the AT Internet and/or Firebase Analytics SDKs to your project.
{% endhint %}

Batch will automatically instantiate `Tracker` instances using the default AT Internet configuration, automatically added in the `aar` you get from AT Internet.\
If you're not using their AAR but another distribution of the AT Internet (for example, a maven one) and would like to manually configure your Tracker in code, you can tell Batch which instance to use:

{% tabs %}
{% tab title="Kotlin" %}

```kotlin
// Put this in your Application's onCreate()
AtInternetRegistrar().getDispatcher(this).setTrackerOverride(yourTrackerInstance)
```

{% endtab %}

{% tab title="Java" %}

```java
// Put this in your Application's onCreate()
new AtInternetRegistrar().getDispatcher(this).setTrackerOverride(yourTrackerInstance);
```

{% endtab %}
{% endtabs %}
