KM.i()
KM.i
returns the visitor’s Kissmetrics ID, in case you need to pass that along to another function.
If the JavaScript library has never seen a visitor before, it will create a randomized identity for them to attribute all of that person’s events to the same browser. This lets you track this particular person’s activity across sessions.
The generated ID is Base64 encoded, so the IDs are generated with only these characters: a-z, A-Z, 0-9, +, /, and =.
KM.ts()
KM.ts
returns the current Unix timestamp in seconds. This is what we use to determine the current time.