Track 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 Anonymous visitors.

If you're using anonymous Visitor IDs and a visitor navigates 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. Ask a developer to update your install script by adding cookieDomain: '' to the pendo.initialize() function , replacing with the appropriate domain. This allows you to use the same cookie to track the anonymous visitor on all of the subdomains.
  2. Open Pendo, and navigate to Settings > Subscription Settings. You must be an Admin to access this page.
  3. Open the Applications tab, then find and open the relevant app from your Applications list.

  4. Ensure that the following options aren't selected in the App Details tab. 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
  5. If you want to track anonymous visitors across apps within the same domain, ensure that the Enable cross-app cookies for consistent anonymous visitor identification setting is selected. This setting isn't currently available for extension apps.
  6. Repeat steps 3 to 5 for each app where you want to track anonymous visitors across subdomains.

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

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