Tracking anonymous visitors across subdomains

Last Updated:

Using anonymous Visitor IDs in Pendo allows you to track the activity of users while keeping the identity of those visitors anonymous. For more information about anonymous visitors, see the Anonymous Visitors article.

If you're using anonymous Visitor IDs and a visitor moves between subdomains, you can adjust the install script for your Pendo subscription to ensure that the same anonymous Visitor ID is used on both subdomains. 

For example, you might want to know when the same anonymous visitor first visits and then visits You can do this by implementing the cookieDomain setting in your install script.

  1. Navigate to Settings > Subscription Settings.

  2. Open the Applications tab.

  3. Find and open the relevant app from your Applications list.

  4. Open the Install Settings tab at the top of the page.
  5. Add cookieDomain: '' to the pendo.initialize() function in the install script. This allows you to use the same cookie to track the anonymous visitor on all of the subdomains.
  6. Open the App Details tab at the top of the page.
  7. Ensure that the following options aren't selected. If either of these settings are selected, the cookieDomain setting doesn't work correctly:
    • Disable client-side storage (Agent cookies and local storage)
    • Prevent the web agent from using cookies when local storage is not available

For more information about the install script and the initialize function, see the Developer's guide to installing Pendo.

Was this article helpful?
0 out of 2 found this helpful