Skip to content
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

Custom events #61

Merged
merged 2 commits into from
Jan 24, 2023
Merged

Custom events #61

merged 2 commits into from
Jan 24, 2023

Conversation

BroiSatse
Copy link
Contributor

@BroiSatse BroiSatse commented Jan 23, 2023

DfE::Analytics::SendEvents expects an array of hashes. This change allows passing constructed DfE::Analytics::Event object as well, without need to convert them into hashes first.

@@ -202,7 +202,7 @@ event = DfE::Analytics::Event.new
Once all the events have been constructed, simply send them to your analytics:

```ruby
DfE::Analytics::SendEvent.do(event, event2, event3, ...)
DfE::Analytics::SendEvents.do([event, event2, event3])
Copy link
Contributor

Choose a reason for hiding this comment

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

🙏

@duncanjbrown duncanjbrown merged commit 1854f2a into DFE-Digital:main Jan 24, 2023
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