Skip to content

Commit

Permalink
fix(fb pixel): add default action source (#1946)
Browse files Browse the repository at this point in the history
* fix: add default aciton_source

* fix: add default aciton_source
  • Loading branch information
Gauravudia committed Mar 15, 2023
1 parent 04a12d7 commit 2e03f4d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 35 deletions.
3 changes: 3 additions & 0 deletions src/v0/destinations/facebook_pixel/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ const responseBuilderSimple = (message, category, destination, categoryToContent
if (!isActionSourceValid) {
throw new InstrumentationError('Invalid Action Source type');
}
} else {
commonData.action_source = 'other';
}

if (category.type !== 'identify') {
customData = flattenJson(
extractCustomFields(message, customData, ['properties'], FB_PIXEL_DEFAULT_EXCLUSION),
Expand Down
Loading

0 comments on commit 2e03f4d

Please sign in to comment.