Adding the right domains to your Script page is essential for collecting accurate visitor data. This guide will help you understand how domain rules work and how to set them up correctly.
How Domain Matching Works
RB2B uses domain-based rules to decide where your tracking script runs. Here's how it behaves:
Entering
rb2b.com
will allow the script to run on:rb2b.com
www.rb2b.com
support.rb2b.com
Any subdomain of
rb2b.com
Entering
support.rb2b.com
will limit the script to just:support.rb2b.com
onlyIt will not run on
www.rb2b.com
orrb2b.com
Think of it like this:
Top-level domains = broad coverage
Subdomains = specific targeting
Best Practices for Adding a Domain
Follow these tips to make sure you're tracking all the pages you care about:
1. Use the Root Domain When Possible
If your goal is to track your whole site and any subdomains, enter just the root domain.
Recommended:
yourcompany.com
This will track:
yourcompany.com
www.yourcompany.com
blog.yourcompany.com
support.yourcompany.com
...and any other subdomains
2. Use a Specific Subdomain Only When Needed
If you only want to run the script on one part of your site (like your help center), enter that full subdomain.
Example:
support.yourcompany.com
(This will not run on your main site or other subdomains.)
Common Mistakes to Avoid
Mistake | What Happens | Fix |
Adding | Script only runs on | Use |
Only adding | Script won’t run on | Use |
Final Tip: Keep It Broad Unless You Have a Specific Reason
Unless you have a reason to restrict tracking to a very specific part of your site, use the broadest version of your domain to maximize coverage.