> For the complete documentation index, see [llms.txt](https://ctracker-docs.keywordrush.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ctracker-docs.keywordrush.com/putting-it-on-your-pages/shortcodes/tracking-link.md).

# \[tracking-link]

An affiliate link to a shop, or to one specific product inside it.

```
[tracking-link id="2898768"]Shop at Nike[/tracking-link]
```

Unlike [`[cashback-advertiser]`](/putting-it-on-your-pages/shortcodes/cashback-advertiser.md), which prints a bare URL, this builds the whole anchor — and it is the only way to send a visitor to a *particular product* with your tracking attached.

### Choosing the shop

| Attribute                   | What it takes                                                                   |
| --------------------------- | ------------------------------------------------------------------------------- |
| **id** / **advertiser\_id** | The shop's id at the network                                                    |
| **module\_id**              | The network slug, such as `Awin`. Needed only when two networks share a shop id |

### Choosing the destination

| Attribute        | What it does                          |
| ---------------- | ------------------------------------- |
| **product\_url** | The exact page to send the visitor to |
| **product**      | The same thing, older spelling        |

Leave both out and the link goes to the shop's home page.

```
[tracking-link id="2898768" product_url="https://www.nike.com/t/air-max-90"]Air Max 90[/tracking-link]
```

{% hint style="warning" %}
**A deep link only works if the network supports one.** Most do; some accept only a link to the shop's front page and will drop the rest. If a product link lands on the shop's homepage instead of the product, that network is the reason — not the shortcode.
{% endhint %}

### The link itself

| Attribute             | Default           | What it does                                |
| --------------------- | ----------------- | ------------------------------------------- |
| **anchor** / **text** | the enclosed text | The link text, if you would rather not wrap |
| **class**             | —                 | Classes on the anchor, for your own styling |
| **target**            | —                 | `_blank` to open in a new tab               |
| **rel**               | —                 | Extra `rel` values                          |

Both forms work:

```
[tracking-link id="2898768"]Shop at Nike[/tracking-link]
[tracking-link id="2898768" anchor="Shop at Nike"]
```

### What the visitor is sent through

The link carries a **sub id** identifying the member, so when the order comes back from the network it is credited to the right person. A logged-out visitor gets a marker instead, and their order arrives attributed to nobody — which is why a cashback site usually asks people to sign in before clicking.

The Go to shop button on a shop page does the same thing, with the sign-in step built in. This shortcode does not: it links straight out, whoever is reading.

### Example

An editorial roundup, each product linked with tracking:

```
Our pick this month is the [tracking-link id="2898768" product_url="https://www.nike.com/t/air-max-90" target="_blank"]Air Max 90[/tracking-link].
```

### Related

* [Tracking links and the Go to shop button](/shops-and-cashback-rates/tracking-links.md)
* [`[cashback-advertiser]`](/putting-it-on-your-pages/shortcodes/cashback-advertiser.md)
* [WooCommerce](/integrations/woocommerce.md) — the same links, on product pages
