You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A data enrichment is a powerful add-on to enrich the data you're already streaming to Keen IO by pre-processing the data and adding helpful data properties. To activate add-ons, you simply add some new properties within the "keen" namespace in your events. Detailed documentation for the configuration of our add-ons is available [here](https://keen.io/docs/api/?php#data-enrichment).
110
+
111
+
Here is an example of using the [URL parser](https://keen.io/docs/streams/url-enrichment/):
Here is another example of using the [Datetime parser](https://keen.io/docs/streams/datetime-enrichment/). Let's assume you want to do a deeper analysis on the "purchases" event by day of the week (Monday, Tuesday, Wednesday, etc.) and other interesting Datetime components. You can use "keen.timestamp" property that is included in your event automatically.
149
+
150
+
```php
151
+
$client->addEvent('purchases', [
152
+
'keen' => [
153
+
'addons' => [
154
+
[
155
+
'name' => 'keen:date_time_parser',
156
+
'input' => [
157
+
'date_time' => 'keen.timestamp'
158
+
],
159
+
'output' => 'timestamp_info'
160
+
]
161
+
]
162
+
],
163
+
'price' => 500
164
+
]);
165
+
```
166
+
167
+
Other Data Enrichment add-ons are located in the [API reference docs](https://keen.io/docs/api/?php#data-enrichment).
168
+
108
169
#### Send batched events to Keen - ([Changed in 2.0!](CHANGE.md))
109
170
You can upload multiple Events to multiple Event Collections at once!
0 commit comments