> ## Documentation Index
> Fetch the complete documentation index at: https://developers.aimtell.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tracking Functions

> Javascript API tracking functions for Aimtell

## Alias Tracking

Associates an alias against the push subscriber for simplified server-side tracking.

```javascript theme={null}
_at.track("alias", {"user" : "name or id", "email" : "email" });
```

**Description:** Associates an alias against the push subscriber for simplified server-side tracking

You may pass the `user` field and/or the `email` field. All emails are automatically hashed.

### Example

```javascript theme={null}
_at.track("alias", {"user" : "jack17"});
```

***

## Event Tracking

Tracks an event against the current subscriber.

```javascript theme={null}
_at.track("event", {"category" : "A", "action" : "B", "label": "C", "value" : D });
```

**Description:** Tracks an event against the current subscriber

`category` & `action` are required. `label` and `value` are optional.

### Example

```javascript theme={null}
_at.track("event", {
  "category" : "Item",
  "action" : "Purchased",
  "label": "Blue Shoes",
  "value" : 33
});
```

***

## Attribute Tracking

Tracks custom attribute(s) against the subscriber.

```javascript theme={null}
_at.track("attribute", {"attribute" : "value"});
```

**Description:** Tracks custom attribute(s) against the subscriber

### Example

```javascript theme={null}
_at.track("attribute", {"age" : "35", "name":"david"});
```
