-
Notifications
You must be signed in to change notification settings - Fork 144
[MAIN] [STRATCONN-2841] Added event_id in page action of Pinterest Tag #801
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✨
name: page.name() || '' | ||
}; | ||
|
||
var eventKeys = ['event_id', 'eid', 'eventID']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we search for eid
, eventID
these specific attributes? How did we decide these three values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. So, do we expect customers to provide these values in properties? Is this consistent with how we can handle track
? Should we add supprot for eid
, eventID
in track as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for track
events, mappings are generated through the generatePropertiesObject
function. Using forLoop, when the user adds any of these three event IDs, that value directly gets attached to the mappings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Left a few questions.
Also - could you bump the package version in package.json
?
What does this PR do?
JIRA TICKET: https://segment.atlassian.net/browse/STRATCONN-2841
Create mapping for Pinterest event_id as segment messageId.
mapMessageIdToEventId
is disabled/falsemapMessageIdToEventId
is enabled/trueAre there breaking changes in this PR?
Testing
Any background context you want to provide?
Is there parity with the server-side/android/iOS integration components (if applicable)?
Does this require a new integration setting? If so, please explain how the new setting works
Links to helpful docs and other external resources