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

# Test the Web SDK

> Check that your website sends sign-ups, campaign visits, custom events, and purchases to Linkrunner.

Open [SDK Testing → Web SDK](https://dashboard.linkrunner.io/dashboard/sdk-console/web-sdk-setup) in the dashboard. You need to be a project admin or member.

## 1. Register your test browser

<Steps>
  <Step title="Install the Web SDK">
    Choose how your website loads the SDK, copy the snippet, and deploy it to your website. Your token is already filled in.

    <img src="https://mintcdn.com/linkrunner-01ef8e08/QPggnBQcPZoPsJrH/images/web-sdk-testing/register-install.webp?fit=max&auto=format&n=QPggnBQcPZoPsJrH&q=85&s=4254a3299e942041b7d8dda3956932a3" alt="Install the Web SDK step with the install options and the snippet" width="1480" height="1228" data-path="images/web-sdk-testing/register-install.webp" />
  </Step>

  <Step title="Open the registration link">
    Choose **Production**, or **Other URL** to test on a staging or local site. Then click **Open** to open the registration link in the browser you want to test with.

    <img src="https://mintcdn.com/linkrunner-01ef8e08/QPggnBQcPZoPsJrH/images/web-sdk-testing/register-test-link.webp?fit=max&auto=format&n=QPggnBQcPZoPsJrH&q=85&s=2d03fa15c0a8eb24c087cd4e745c0587" alt="Site selector set to Production and the registration link ending in lr_test" width="1476" height="596" data-path="images/web-sdk-testing/register-test-link.webp" />
  </Step>

  <Step title="Confirm your browser">
    Linkrunner registers your browser and moves to the next step. If more than one browser opened the link, click **Register** next to the one you are testing with.

    <img src="https://mintcdn.com/linkrunner-01ef8e08/QPggnBQcPZoPsJrH/images/web-sdk-testing/browser-registered.webp?fit=max&auto=format&n=QPggnBQcPZoPsJrH&q=85&s=2568ecaa7aae8337398ffca76a542198" alt="Test browser registered as Chrome on macOS" width="1512" height="356" data-path="images/web-sdk-testing/browser-registered.webp" />
  </Step>
</Steps>

The next steps only count events from this browser, so other visitors on your website do not affect the test. The registration lasts until you leave SDK Testing or reload the page. After that, open the registration link again.

## 2. Test a sign-up

Sign up on your website in your test browser. When the step shows **Sign-up received**, click **Next**.

<img src="https://mintcdn.com/linkrunner-01ef8e08/QPggnBQcPZoPsJrH/images/web-sdk-testing/signup-verified.webp?fit=max&auto=format&n=QPggnBQcPZoPsJrH&q=85&s=e04e94234e5e433996ec5e10eecbe5d8" alt="Sign-up Tracking step showing Sign-up received" width="1476" height="1076" data-path="images/web-sdk-testing/signup-verified.webp" />

Your website needs to call `identify` and send a `signup` event. The step shows the code for your setup, and [Identify users and track events](/sdk/web#2-identify-users-and-track-events) explains it.

## 3. Test campaign attribution

Copy the link under **Copy your test link** and open it in your test browser. The step shows **Visit attributed to Test Campaign**.

<img src="https://mintcdn.com/linkrunner-01ef8e08/QPggnBQcPZoPsJrH/images/web-sdk-testing/attribution-verified.webp?fit=max&auto=format&n=QPggnBQcPZoPsJrH&q=85&s=c2ef435821cc4ebc25882d4433136140" alt="Attribution Testing step showing Visit attributed to Test Campaign" width="1476" height="1512" data-path="images/web-sdk-testing/attribution-verified.webp" />

## 4. Test a custom event

Do something on your website that sends an event, such as adding an item to the cart. The step shows **Custom event received**.

<img src="https://mintcdn.com/linkrunner-01ef8e08/QPggnBQcPZoPsJrH/images/web-sdk-testing/custom-event-verified.webp?fit=max&auto=format&n=QPggnBQcPZoPsJrH&q=85&s=0218543a1f140f29b468cf5fd228d930" alt="Custom Events Tracking step showing Custom event received" width="1476" height="1112" data-path="images/web-sdk-testing/custom-event-verified.webp" />

## 5. Test a purchase

Make a test purchase on your website. The step shows **Purchase received** with the amount.

<img src="https://mintcdn.com/linkrunner-01ef8e08/QPggnBQcPZoPsJrH/images/web-sdk-testing/revenue-verified.webp?fit=max&auto=format&n=QPggnBQcPZoPsJrH&q=85&s=8217eba76897c5e61cd4615493aea562" alt="Revenue Event Tracking step showing Purchase received" width="1476" height="1040" data-path="images/web-sdk-testing/revenue-verified.webp" />

Click **Done**. **Web Campaigns** opens with a **Test Campaign** row for your test visit.

<img src="https://mintcdn.com/linkrunner-01ef8e08/QPggnBQcPZoPsJrH/images/web-sdk-testing/web-campaigns-test-campaign.webp?fit=max&auto=format&n=QPggnBQcPZoPsJrH&q=85&s=05d0939bc9d0b9ec25cc665843da12b9" alt="Web Campaigns with the Test Campaign row highlighted" width="2068" height="926" data-path="images/web-sdk-testing/web-campaigns-test-campaign.webp" />

## If something does not show up

* **Your browser does not appear after you open the registration link:** check that the snippet is live on the site you opened, and turn off ad blockers in your test browser.
* **A step keeps waiting:** send the event from the browser you registered, after the step has opened.

**Need help?** Contact [support@linkrunner.io](mailto:support@linkrunner.io).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.