keen / keen-js

https://keen.io/ JavaScript SDKs. Track users and visualise the results. Demo http://keen.github.io/keen-dataviz.js/
MIT License
578 stars 143 forks source link

timeframe for custom datetime properties #427

Closed larsbo closed 7 years ago

larsbo commented 7 years ago

Hi guys! I already found the notice inside the docs (https://keen.io/docs/api/#timeframe) that says timeframes can only applied to the keen.timestamp property. Why did you choose this restriction? And is there any solution to make intervals (+ timeframes) work with my custom datetime property?

tbarn commented 7 years ago

It is because the only property that supports a Datetime type is the keen.timeframe.

One alternative is that you can send it in with the Datetime enrichment and then do a filter with that. See more here: https://keen.io/docs/streams/datetime-enrichment/

larsbo commented 7 years ago

thank you for the hint, @tbarn ! I'll check out the datetime enrichment :)