Skip to main content

Testing your integration

We recommend testing the Web SDK integration to ensure it's loading correctly and loading data attributes as expected.

Before you begin

You can follow the steps below to test your Rokt Ecommerce or Rokt Ads Web SDK integration.

  1. Open a new window in your browser.

  2. Open your browser developer tools panel. For most browsers, you can do this by right-clicking on your screen and clicking Inspect.

  3. From the developer tools panel, go to the Network tab and type placements into the filter bar.

  4. Navigate to the site and page where the Web SDK has been placed.

    Note: Make sure you have the developer tools open before navigating to your site to ensure the /placements call is recorded by the browser.

  5. In the Network tab of the developer tools panel, you should see at least one /placements request. This indicates that the Web SDK loaded successfully.

  6. Click the /placements request (it should have a status of 200). From the Headers tab, scroll down to the Request Payload section to verify the data being shared with Rokt.

    Note: During testing, you might see another /placements call with a 204 status. Make sure you are performing the check on the call with a 200 status.

Web SDK integration testing


If you are having trouble validating your integration, you may be experiencing one of the following common errors.

Syntax errors#

Make sure you are not missing any commas in your Rokt snippet.

To check for syntax errors:

  1. Go to the browser developer tools Console tab.

  2. If the file where you placed the Web SDK has an error, it appears in the console. Click the file to see the code and error from the browser.

    Web SDK integration testing

  3. Any error is indicated in the file. In particular, check that all attributes are separated by commas as shown below.


email: ''emailsha256: '',


email: '',emailsha256: '',

Other common errors#

  1. Make sure the script has been placed on the correct page.
  2. If you’re using a tag manager, make sure the triggers are set up correctly so the script loads on the right page.
Was this article helpful?