Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting aptrinsic region #574

Merged
merged 4 commits into from
Mar 24, 2021
Merged

Allow setting aptrinsic region #574

merged 4 commits into from
Mar 24, 2021

Conversation

danieljackins
Copy link
Contributor

@danieljackins danieljackins commented Mar 24, 2021

What does this PR do?
Adds ability for customer to choose which region the PX subscription is hosted in.

Are there breaking changes in this PR?
No, it is backward compatible. If data center is not specified, the historical behavior continues, the data center defaults to “united_states”.

Testing

Testing completed successfully using

Updated unit tests to test new dataCenter option
Tested against production PX environment using the "Analytics.js-Integrations Tester" tool. Verified three scenarios work as expected:

  • No value specified for dataCenter, defaults to "united_states"
  • Specified united_states
  • Specified eu

Any background context you want to provide?
We are in the process of enabling an EU datacenter that will be used by customers who wish to have all of their data hosted in the EU. We want to have the Segment code load a script from our EU datacenter instead of the current one from the US if specified by the customer.

Is there parity with the server-side/android/iOS integration components (if applicable)?
We need to make a very similar change to the “Gainsight PX Cloud Server” integration. The endpoint address needs to change based on the customer’s region selection (esp-eu.aptrinsic.com instead of esp.aptrinsic.com). Note: The Cloud Server change is independent of the JS integration change.

Does this require a new integration setting? If so, please explain how the new setting works
Yes, we need a new “dataCenter” option. It should be a dropdown/select with the following labels/values:

  • United States/united_states
  • EU/eu

The default option value for new integrations should be united_states, we do not need to force the user to make a selection.

Help Text below selector:
For PX instances based in the European Union at https://app-eu.aptrinsic.com, select the EU option. For all others (at https://app.aptrinsic.com), select the United States option.

Links to helpful docs and other external resources
Mockup of config screen showing new region setting:
image

**Why is this PR raised?

We are hoping to allow our mutual customers to have the option to use the new EU datacenter.

**Are there any docs surrounding the change?

Once the change is live, we will upgrade the relevant screenshots and text on this page: https://support.gainsight.com/PX/Install_PX/02_Install_Gainsight_PX_using_Segment_for_web_apps

**What will the customer impact be as a result of the change?

Customers will be able to use Segment to load the PX tag from the EU data center and comply with their GDPR requirements.

**What will the customer impact be if the change is not implemented?

EU customers will need to load the PX tag manually (not use Segment)

@danieljackins danieljackins changed the title Dj/aptrinsic Allow setting aptrinsic region Mar 24, 2021
@danieljackins danieljackins mentioned this pull request Mar 24, 2021
@danieljackins danieljackins marked this pull request as ready for review March 24, 2021 18:55
@danieljackins danieljackins merged commit 20f7641 into master Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants