Created
November 17, 2017 13:33
-
-
Save alexbeletsky/2d2fbdbd67cf7f448e928087f005a84e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function trackable(action, event, properties = {}) { | |
const analytics = { | |
eventType: event, | |
eventPayload: properties | |
}; | |
return { ...action, meta: { analytics } }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment