Skip to content

Instantly share code, notes, and snippets.

@helielson
Last active October 29, 2018 03:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helielson/64eb0f18e744d43e79f0814f81f554a4 to your computer and use it in GitHub Desktop.
Save helielson/64eb0f18e744d43e79f0814f81f554a4 to your computer and use it in GitHub Desktop.
const profileInfoViewed = (fromComponent, profile) => {
const { id, name, age, homeLocation } = profile;
eventsAPI(
'ProfileInfoViewed',
fromComponent,
{ id, name, age, city: homeLocation.title }
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment