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

Gainsight PX Device Mode new integration #1684

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "GAINSIGHT_PX_BROWSER",
"displayName": "Gainsight PX",
"config": {
"transformAtV1": "processor",
"saveDestinationResponse": true,
"includeKeys": [
"productKey",
"dataCenter",
"blacklistedEvents",
"whitelistedEvents",
"oneTrustCookieCategories",
"eventFilteringOption",
"consentManagement"
],
"excludeKeys": [],
"supportedSourceTypes": ["web"],
"supportedConnectionModes": { "web": ["device"] },
"supportedMessageTypes": { "device": { "web": ["identify", "track", "group"] } },
"destConfig": {
"defaultConfig": [
"productKey",
"dataCenter",
"blacklistedEvents",
"whitelistedEvents",
"eventFilteringOption",
"oneTrustCookieCategories"
],
"web": ["useNativeSDK", "connectionMode", "consentManagement"]
},
"secretKeys": ["productKey"]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"configSchema": null
}
222 changes: 222 additions & 0 deletions src/configurations/destinations/gainsight_px_browser/ui-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
{
"uiConfig": [
{
"title": "Connection Settings",
"fields": [
{
"type": "textInput",
"label": "Product Key",
"value": "productKey",
gs-nwolfe marked this conversation as resolved.
Show resolved Hide resolved
"regex": "^(AP-[A-Z]{10,30}-[1-2](-[1-4])*)$",
"regexErrorMessage": "Invalid Product KEY",
"required": true,
"placeholder": "e.g: AP-XXXXXXXXXXXXX-2",
"secret": true
},
{
"type": "singleSelect",
"label": "Data Center",
"value": "dataCenter",
"required": true,
"placeholder": "US",
"options": [
{
"name": "US",
"value": "US"
},
{
"name": "EU",
"value": "EU"
},
{
"name": "US2",
"value": "US2"
}
],
"defaultOption": {
"name": "US",
"value": "US"
}
}
]
},
{
"title": "Native SDK",
"fields": [
{
"type": "defaultCheckbox",
"label": "Use device-mode to send events",
"value": "useNativeSDK",
"default": true
}
]
},
{
"title": "Client-side Events Filtering",
"sectionNote": "Applicable only for device-mode integrations. If enabled, it works only with either allowlisted or denylisted events",
"fields": [
{
"type": "singleSelect",
"value": "eventFilteringOption",
"required": false,
"options": [
{
"name": "Disable",
"value": "disable"
},
{
"name": "Allowlist",
"value": "whitelistedEvents"
},
{
"name": "Denylist",
"value": "blacklistedEvents"
}
],
"defaultOption": {
"name": "Disable",
"value": "disable"
}
},
{
"type": "dynamicCustomForm",
"value": "whitelistedEvents",
"label": "Allowlist",
"customFields": [
{
"type": "textInput",
"value": "eventName",
"required": false,
"placeholder": "e.g: Anonymous Page Visit"
}
]
},
{
"type": "dynamicCustomForm",
"value": "blacklistedEvents",
"label": "Denylist",
"customFields": [
{
"type": "textInput",
"value": "eventName",
"required": false,
"placeholder": "e.g: Credit Card Added"
}
]
}
]
},
{
"title": "Consent Settings",
"fields": [
{
"type": "dynamicCustomForm",
"value": "oneTrustCookieCategories",
"label": "OneTrust Consent Categories",
"footerNote": "The support for category names is deprecated. We recommend using the category IDs instead of the names as IDs are unique and less likely to change over time, making them a more reliable choice.",
"customFields": [
{
"type": "textInput",
"placeholder": "C0001",
"value": "oneTrustCookieCategory",
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$",
"label": "Category ID",
"required": false
}
],
"preRequisites": {
"featureFlags": [
{
"configKey": "AMP_enable-gcm",
"value": false
},
{
"configKey": "AMP_enable-gcm"
}
],
"featureFlagsCondition": "or"
}
},
{
"type": "dynamicCustomForm",
"value": "consentManagement",
"label": "Consent management settings",
"footerNote": "The support for category names is deprecated. We recommend using the category IDs instead of the names as IDs are unique and less likely to change over time, making them a more reliable choice.",
"customFields": [
{
"type": "singleSelect",
"label": "Consent management provider",
"value": "provider",
"options": [
{
"name": "Custom",
"value": "custom"
},
{
"name": "Ketch",
"value": "ketch"
},
{
"name": "OneTrust",
"value": "oneTrust"
}
],
"defaultOption": {
"name": "OneTrust",
"value": "oneTrust"
},
"required": true
},
{
"type": "singleSelect",
"label": "the required consent logic",
"value": "resolutionStrategy",
"options": [
{
"name": "AND",
"value": "and"
},
{
"name": "OR",
"value": "or"
}
],
"required": true,
"variant": "badge",
"preRequisites": {
"fields": [
{
"configKey": "provider",
"value": "custom"
}
]
}
},
{
"type": "dynamicCustomForm",
"value": "consents",
"label": "Enter consent category ID’s",
"customFields": [
{
"type": "textInput",
"placeholder": "Marketing",
"value": "consent",
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$",
"required": false
}
]
}
],
"preRequisites": {
"featureFlags": [
{
"configKey": "AMP_enable-gcm",
"value": true
}
]
}
}
]
}
gs-nwolfe marked this conversation as resolved.
Show resolved Hide resolved
]
}