diff --git a/content/docs/tracker-functions.mdx b/content/docs/tracker-functions.mdx index 8533d56..ed1c8d9 100644 --- a/content/docs/tracker-functions.mdx +++ b/content/docs/tracker-functions.mdx @@ -101,6 +101,18 @@ Event Data can work with any JSON data. There are a few rules in place to mainta - Arrays are converted to a String, with the same max length of 500. - Objects have a max of 50 properties. Arrays are considered 1 property. +## Overriding Event Timestamps + +You can override the event timestamp by adding a UNIX timestamp in seconds to the payload: + +```js +umami.track(props => ({ + ...props, + name: 'signup-button', + timestamp: 1771523787, // new Date().getTime() / 1000 +})); +``` + ## Sessions Pass in your own ID to identify a user.