# How to test affiliate link tracking with a clean jar

> To test whether an affiliate link tracks, click it from a browser with an empty cookie jar and read what it set. An old click's cookie can spoil the test.

Source: https://mosaicbrowser.com/blog/testing-affiliate-link-tracking

## Testing whether your affiliate links track, with a clean jar

To test whether an affiliate link tracks, click it from a browser with an empty cookie jar and read what it set. An old click's cookie can spoil the test.

![One test click, one empty cookie jar, beside a screenshot: importing a cookie jar into a Mosaic profile](https://mosaicbrowser.com/covers/testing-affiliate-link-tracking.webp)

To test whether an affiliate link tracks, click it from a browser with an empty cookie jar, follow it to the merchant's page, then check two things: that the click appears in your network's report under the right sub-ID, and that the cookies the click should set are actually there. The empty jar is the part people skip, and it is the reason a test can pass on a link that is broken, or fail on one that works.

## Why an old click spoils the test

Most affiliate programmes credit the last qualifying click inside the cookie window. When someone clicks your link, the network's redirect drops a cookie, or passes a click ID that the merchant's own site stores, and when an order arrives within the window, the network reads it and pays the affiliate it names.

Your everyday browser is the worst place to test that. It has probably clicked through this merchant before: through your own link last week, through a different sub-ID, through a coupon site, or through another affiliate's review. Whichever click came last owns the attribution. Test in that browser and you may be reading a week-old cookie, not the click you just made. A coupon or cashback extension can also step in on the way and swap the click for its own, so turn those off before you test.

The fix is the same as for [testing your own checkout as a new customer](https://mosaicbrowser.com/blog/test-checkout-as-customer): a browser that has never met the merchant, so the only click it knows about is the one you are testing.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Provider minting](https://mosaicbrowser.com/features/proxy-providers)

## Testing the click

1. Tag the link with a sub-ID you will recognise, such as `test-1016-a`. Most networks have a field for it, and it lets you find this click in a report full of real ones.
2. Open a browser with no cookies for the network or the merchant, and no shopping extensions.
3. Paste the link and let every redirect finish. Note where you land: the final URL should be the merchant's page, often with a click ID still in the query string.
4. Read the cookies. You are looking for one on the network's tracking domain, a first-party one on the merchant's domain carrying the click ID, or both. If neither is there, the attribution has nowhere to live.
5. Wait for the network's click report to refresh, which on most networks takes a few hours, and find your sub-ID.

If you want to check the order of attribution between two links, use a fresh, empty browser for each run, click link A, then link B, and read which ID the merchant's cookie holds at the end. Doing that in one jar you keep reusing tests nothing past the first run.

## Testing without breaking the rules

The click test needs no purchase, and that matters. Many programmes do not pay commission on an affiliate's own orders, and some treat ordering through your own link as a breach of the programme terms. Read your programme's rules before you place any order through your link. If you need to confirm that conversions are tracked, the clean route is the merchant's: many networks give merchants test orders or a test mode for exactly this, and the merchant is the one who should run them.

Geography is the other trap. A programme that only pays for visitors from certain countries, or a merchant that redirects by country, will treat your test according to your address. If the link is meant for German visitors, the test should come from a German exit with a timezone and language to match, which is the same setup as [checking what a shop shows a buyer in each country](https://mosaicbrowser.com/blog/shopify-markets-geolocation-test).

## How we do it in Mosaic

A Mosaic profile is a browser with its own cookie jar, its own fingerprint and its own proxy, so it suits this kind of test.

- Create a profile, with a proxy in the country the link is meant for if that matters. The profile's timezone and language are drawn to match the proxy's measured exit.
- Start it and click the tagged link.
- Read what was set. The profile editor's Cookies tab lists the jar, and with Pro the local API reads a running browser's cookies directly: `GET /api/v1/profiles/:id/cookies` answers with `source: "live"` while the browser is open. The MCP tool `list_cookies` reads the same list.
- To run the test again from empty, stop the profile and press Clear on the Cookies tab, or call `DELETE /api/v1/profiles/:id/cookies`. That empties the stored jar and deletes the browser's own cookie database, so a used profile really does come back empty.

Clearing cookies leaves local storage and history in place. Some trackers keep an ID there too, so for a test where the order of two clicks is the whole question, a new profile is the cleaner start. On a free plan profile creations are counted, so keep one test profile and clear it for routine checks.

Every profile's jar stays on your computer; Mosaic has no cloud copy of it. If you test links for several clients, a profile per client, named after the client's programme, keeps each one's test cookies out of the others' runs. [How agencies set up ad accounts in Mosaic](https://mosaicbrowser.com/use-cases/ad-account-management) covers that layout.

## Questions

### How do I test if my affiliate link is tracking?

Click it from a browser that has never visited the merchant or the network, follow the redirects to the landing page, and check that the click shows up in your network's click report with the right sub-ID. Then read the cookies that click set.

### Can I buy through my own affiliate link to test it?

Read your programme's terms first. Many programmes do not pay commission on your own purchases, and some treat them as a breach. A click test does not need an order, and a merchant can test conversions with its own test tools.

### Why does my test click not show up in the report?

Most networks report clicks with a delay of a few hours. If it still does not appear, check that the link carries your publisher ID, that no extension rewrote it, and that an older affiliate cookie in the browser did not take the attribution.

### Does incognito mode give a clean test?

It starts with no cookies, which helps. It still shares your normal network address, your real fingerprint and any extensions you allowed in incognito, so it is clean for cookies only.

## Related

[Testing your own checkout as a customer who has never visited](https://mosaicbrowser.com/blog/test-checkout-as-customer): To test a Shopify checkout as a customer, pay with a test method from a browser that has never seen your store: no admin login, no saved address, no cart.

[Checking what Shopify Markets shows a buyer in each country](https://mosaicbrowser.com/blog/shopify-markets-geolocation-test): To test Shopify Markets geolocation, make the exit, timezone and language name one country: Shopify reads the IP for country and the browser for language.

[Pin the country, not the address](https://mosaicbrowser.com/blog/pin-the-country-not-the-address): A residential pool moves your exit whatever you do. The checks that matter compare countries, so pin the country and let the address move inside it.

[Mosaic for agencies and media buyers managing ad accounts](https://mosaicbrowser.com/use-cases/ad-account-management): Keep each client's ad platform logins, two-factor codes and sessions in their own browser profile, and see their ads from the client's own market.

[Amazon Associates and several websites: one account, many tracking IDs](https://mosaicbrowser.com/blog/amazon-associates-several-sites): Amazon Associates wants one account per person, with every site listed in it and a tracking ID for each. A second account for a second site breaks the rules.

[Checking your cookie banner from the countries that require it](https://mosaicbrowser.com/blog/cookie-banner-by-country): Consent tools pick the banner by the visitor's IP location, so your office sees one version. Test each region from a fresh profile with an exit there.

[Following an affiliate link's redirects from three countries](https://mosaicbrowser.com/blog/affiliate-redirects-by-country): An affiliate tracker picks the landing page from the visitor's IP country. To see a German visitor's page, click from a German exit on German time.



## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy exit per profile. Free holds 3 profiles. Pro is $49 a month for any number.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
