---
title: Replacing the tracking id
description: You can easily replace your default tracking id on a shortcode basis, which allows you to measure and compare different product placements, templates etc.
url: "https://getaawp.com/docs/article/replacing-tracking-id/"
updated: "2018-02-15"
category: Functions
---

# Replacing the tracking id

By default you setup one tracking id which will be used for generating your affiliate links.

[![](https://getaawp.com/wp-content/uploads/aawp-docs-tracking-id-settings.png)](https://getaawp.com/wp-content/uploads/aawp-docs-tracking-id-settings.png)

But there might be a situation where you want to replace the tracking id. This allows you to measure and compare different product placements, templates etc.

### How can I set a custom tracking id?

This can be done easily by adding the attribute `tracking_id` to any standard shortcode and passing your custom tracking id as follows:

**e.g. single/multiple boxes**

```
[amazon box="ASIN" tracking_id="my-custom-id-20"][
```

**e.g. bestseller lists**

```
[amazon bestseller="smartphone" tracking_id="my-custom-id-20"]
```

**e.g. comparison tables**

```
[amazon table="ID" tracking_id="my-custom-id-20"]
```

 Replacing the tracking id takes affect immediately. In case you're using a caching plugin, please empty your site's cache as well.
