...
Code Block | ||
---|---|---|
| ||
// Log your event collector.logEvent("Server CLI Request", formattedEvent) .then((analyticsEvent) => { // The logEvent() method returns a Promise // that resolves to the event // sent to the analytics service console.log(analyticsEvent) }) .catch((err) => { throw Error(err) }) |
Congratulations! When this script is triggered, your custom events will now be logging to the BlinkMobile Simple Analytics Service Database.
...