Skip to content

Apply correct transformation for Products Searched event #33

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

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

niallzato
Copy link
Contributor

As per our Firebase docs we map the Products Searched event to the native Firebase method: https://segment.com/docs/connections/destinations/catalog/firebase/#event-mappings

This was mapped incorrectly as Product Searched. It should be Products Searched.

@@ -80,7 +80,7 @@ public String key() {
EVENT_MAPPER.put("Product Added to Wishlist", Event.ADD_TO_WISHLIST);
EVENT_MAPPER.put("Product Shared", Event.SHARE);
EVENT_MAPPER.put("Product Clicked", Event.SELECT_CONTENT);
EVENT_MAPPER.put("Product Searched", Event.SEARCH);
EVENT_MAPPER.put("Products Searched", Event.SEARCH);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to add a new mapper for Products Searched, rather than replacing the previous one? im guessing customers might be using Product Searched currently and this change would break that flow

Copy link
Contributor

@prayansh prayansh Mar 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm, seems like the correct and only one to use is Products Searched (ref: https://github.com/segment-integrations/analytics-ios-integration-firebase/blob/master/Segment-Firebase/Classes/SEGFirebaseIntegration.m#L104), so its ok to replace here

@niallzato niallzato merged commit 138afa2 into master Mar 5, 2021
@prayansh prayansh mentioned this pull request Mar 23, 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.

2 participants