Contents:
Interface to KISSmetrics tracking service
Map person to identity; actions done by one resolve to other.
Parameters: |
|
---|---|
Returns: | an HTTP response for the request |
Return type: | urllib3.response.HTTPResponse |
Note the direction of the mapping is person to identity (so “person is also known as identity” or “person => identity” when looking at it as “<source> => <target>”)
When consulting the Aliasing documentation, person corresponds to query_string.PERSON_PARAM and identity corresponds to query_string.ALIAS_PARAM.
Aliasing is not a reversible operation. When aliasing to an identity, take care not to use a session identifier or any other value that is not relatively stable (a value that will not change per request or per session).
For more information see the API Specifications on Aliasing.
Record event for person with any properties.
Parameters: |
|
---|---|
Returns: | an HTTP response for the request |
Return type: | urllib3.response.HTTPResponse |
Set a property (or properties) for a person.
Parameters: |
|
---|---|
Returns: | an HTTP response for the request |
Return type: | urllib3.response.HTTPResponse |
Compatibility interface to KISSmetrics tracking service
Warning
Interface only exists for compatibility and will not be supported in the future.
Map name to alias_to; actions done by one resolve to other.
Parameters: |
|
---|---|
Returns: | an HTTP response for request if resp=True |
Return type: | urllib3.response.HTTPResponse |
Raises : | Exception if either identity or key not set |
Define identity for subsequent calls.
Parameters: | identity (str or unicode) – identifying info (email, user-id, anonymous-id) |
---|
Retrieve path to log file.
Note
Will log to '/tmp/kissmetrics_error.log'; cannot be modified.
Record event for identity with any properties.
Parameters: |
|
---|---|
Returns: | an HTTP response for request if resp=True |
Return type: | urllib3.response.HTTPResponse |
Raises : | Exception if either identity or key not set |
Reset identity and key attributes.
Warning
After calling this method, further calls to record, set, & alias will raise an Exception. You will need to set the API key again via key attribute and call identify.
Set a properties provided in data for identity.
Parameters: |
|
---|---|
Returns: | an HTTP response for request if resp=True |
Return type: | urllib3.response.HTTPResponse |
Raises : | Exception if either identity or key not set |