Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Passing events to google analytics #1223

Merged
merged 1 commit into from
Jul 31, 2018
Merged

Passing events to google analytics #1223

merged 1 commit into from
Jul 31, 2018

Conversation

osahyoun
Copy link
Member

No description provided.


const eventData = getEventData();

window.ga('send', 'event', ...eventData);
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure how I feel about having a fn inside of a fn. I'd also rename payload to data or something similar, to avoid the payload.payload confusion/redundancy (as it gives the impression that you are already dealing with the payload, but you're not).

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

@osahyoun osahyoun merged commit 7c973f7 into development Jul 31, 2018
@osahyoun osahyoun deleted the omar.ga_events branch August 23, 2018 10:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants