Search specific term/phrase surrounded by double quotes. e.g. “deep linking”
Exclude records that contain a specific term prefixed with a minus. e.g. Android -Firebase

Web Testing

Test Branch functionality and access tools to ensure you've successfully integrated our Web SDK.

Overview

The testing tools and resources in this guide help you make sure that you've integrated the Branch Web SDK correctly.

To integrate the Branch Web SDK, follow the steps in our Web SDK Basic Integration guide.

Test Scenarios

Test Reading Deep Link

Reading a Branch Deep Link means retrieving the data from it. You can learn about how to do this in our Web SDK Advanced Features guide.

To test reading a Branch Deep Link, first add a fallback URL to the Deep Link that points to your website:

https://example.app.link/kJNbhZ1PrF?$fallback_url=https://example.com

The website in the fallback URL will open, and a value called _branch_match_id will get appended to the Deep Link:

https://example.app.link/kJNbhZ1PrF?$fallback_url=https://www.website.com/&_branch_match_id=418480444086051524

You can now try to read the _branch_match_id from the $fallback_url website:

branch.init('key_live_YOUR_KEY_GOES_HERE', function(err, data) {
  console.log(err, data);
});

// Read latest data
branch.data(function(err, data) {
  console.log(err, data);
});

Testing Tools

Integration Status Tab

For a quick approach to checking your Branch Web SDK integration status and progress, you can use the Integration Status tab of the Branch Dashboard.

Link Debugger

You can make sure your Branch Link is properly configured by using Branch's Link Debugger tool. It can help you determine whether the link was properly configured and passed the correct data when it was created.

To use Branch's Link Debugger:

  1. Sign in to your Branch Dashboard.

  2. Make sure you are in the proper environment for the link you want to debug (live or test).

  3. Copy the Branch Link, and append ?debug=1 to the end of it.

    1. For example, the Branch Link https://branchster.app.link/3vqEJflHrGb would become https://branchster.app.link/3vqEJflHrGb?debug=1
  4. Paste this link, including the ?debug=1 flag, into your browser. This will open the Link Debugger view:

Additional Resources

Sample Applications

  • Branchsters Monster Factory:
  • Set data, share, track, and create QR codes:
    • Demo
    • GitHub - to make changes:
      • Edit src/web/example.template.html locally
      • Run make

Troubleshooting Guide

If you're experiencing unexpected behavior with the Branch Web SDK, start by taking a look at our Troubleshooting guide.


Recommended Next Steps