Send data to multiple applications

Last updated:

If you have a direct web implementation of Pendo, you can send event data from a single application to multiple Pendo applications that may or may not be in the same subscription by including additionalApiKeys:[] in your install script. 

How it works

Sending data to multiple applications involves updating your install script and adding this to the appropriate area in your primary application's code. The applications that you send this data to must be in the same data environment, which can be either US, US1, EU, or Japan.

Admin users can find the install script for an application in the install settings for that application:

  1. Go to Settings > Subscription Settings > Applications.
  2. Choose the application from the Applications list.
  3. Open the Install settings tab.

The install script includes a primary application (API) key. For more information about the API key, see Components of the install script.

Including additional API keys to your install script allows you to send the same product usage data, such as visitor information and Page views, to multiple applications. It doesn't affect anything that's set at the application level, like guides, session recordings, and click event properties.

For example, in the following code sample in Update the install script, an installation that has API_KEY_FOR_APP1 as the primary API key in the install script doesn't serve guides to API_KEY_FOR_APP2, API_KEY_FOR_APP3, or API_KEY_FOR_APP4. It only sends page load, click, and focus events to these additional applications.

Update the install script

To send data to multiple applications, edit the the install script for your primary application to include additionalApiKeys:[] within the pendo.initialize({}) method call in your install script. For example:

pendo.initialize({
    additionalApiKeys: ['<API_KEY_FOR_APP2>', '<API_KEY_FOR_APP3>', '<API_KEY_FOR_APP4>'],

    visitor: {...},

    account: {...}
});

 

 

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