新しいドキュメントサイトへようこそ。これまで日本語で公開されていた記事は、本サイトでもご利用いただけます。サイトをご利用の際に、ブックマークを新しいURLに更新してください。日本語版がない記事は、英語版をご利用ください。日本語コンテンツは今後も引き続き更新していきます。

Use Config API

Prev Next
This content is currently unavailable in Ja - 日本語. You are viewing the default (English) version.

This article explains how to configure API for Switching Products in a Single Page Application(SPA).

Switch Products in a Single Page Application(SPA)

Gainsight PX provides the feature JS SDK tagKey Method to have the PX tag loaded in a multi-product environment under the same wrapping iframe/shell. In such an environment, PX requires the ability to switch product keys since users are switching between applications without a full page reload (relevant to Single Page Application). The tagKey method provides a function in the SDK that allows you to restart the SDK and pass in the relevant product key.

Syntax

The syntax of the API is:

window.aptrinsic('config','tagKey',productKey);

In the above syntax, tagKey refers to the Gainsight PX tag that you obtain from Administration > Products page.

Opt-Out User Tracking

Use Config API to opt-out from tracking the current user. This API allows the admin to easily make the call for any users for whom they do not want cookies stored or network calls made back to PX, essentially never hitting the PX Server. The selected users will not view any active engagements or Knowledge Center Bot.

Syntax

aptrinsic('config', 'enableTag', false)