Skip to content

Commit

Permalink
feat(mixpanel): add strict mode setting (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravudia authored Jul 20, 2023
1 parent 1ebe3f1 commit 626924d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/configurations/destinations/mp/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"oneTrustCookieCategories",
"identityMergeApi",
"userDeletionApi",
"gdprApiToken"
"gdprApiToken",
"strictMode"
],
"web": ["useNativeSDK"]
},
Expand Down
1 change: 1 addition & 0 deletions src/configurations/destinations/mp/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"enum": ["simplified", "original"],
"default": "original"
},
"strictMode": { "type": "boolean", "default": false },
"userDeletionApi": { "type": "string", "enum": ["engage", "task"], "default": "engage" },
"people": { "type": "boolean", "default": false },
"setAllTraitsByDefault": { "type": "boolean", "default": false },
Expand Down
7 changes: 7 additions & 0 deletions src/configurations/destinations/mp/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@
"required": true,
"placeholder": "e.g: 7vwaux7et2tk2ih1o0qtbt1x97n2je",
"secret": true
},
{
"type": "checkbox",
"label": "Strict Mode",
"value": "strictMode",
"default": false,
"footerNote": "If enabled, Mixpanel will validate the request and return errors per event that failed"
}
]
},
Expand Down
4 changes: 3 additions & 1 deletion test/data/validation/destinations/mp.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"whitelistedEvents": [{ "eventName": "white" }],
"oneTrustCookieCategories": [{ "oneTrustCookieCategory": "Marketing" }],
"userDeletionApi": "task",
"gdprApiToken": "gdprApiToken123"
"gdprApiToken": "gdprApiToken123",
"strictMode": true
},
"result": true
},
Expand All @@ -50,6 +51,7 @@
"secureCookie": false,
"eventFilteringOption": "disable",
"useNativeSDK": { "web": false },
"strictMode": false,
"oneTrustCookieCategories": [{ "oneTrustCookieCategory": "Marketing" }]
},
"result": true
Expand Down

0 comments on commit 626924d

Please sign in to comment.