Skip to content

Instantly share code, notes, and snippets.

@gquemener
Created November 9, 2016 16:32
Show Gist options
  • Save gquemener/22fce83e6de1786e87c1f2ebe283e272 to your computer and use it in GitHub Desktop.
Save gquemener/22fce83e6de1786e87c1f2ebe283e272 to your computer and use it in GitHub Desktop.
const FILTER_BY_NAME = 'FILTER_BY_NAME';
filterByName(name) {
return (dispatch, getState, ga) => {
ga('send', 'event', 'Catalog', 'filter by name', name);
return { type: FILTER_BY_NAME, name };
}
}
export default {
filterByName
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment