Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add extra space above set method to match the style of the rest of th…

…e project. Added in some documentation describing what the method can be used for.
  • Loading branch information...
commit 674df56992c2c3782185ee904e82f0a8094c3742 1 parent a32cb75
@neevor neevor authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/greplin/tornado/kissmetrics.py
View
7 src/greplin/tornado/kissmetrics.py
@@ -76,7 +76,14 @@ def event(self, name, **params):
params['_p'] = self._user_id
self._call(self.KM_EVENT, params)
+
def set(self, **params):
+ """Set properties on a person without tracking an event.
+
+ example: self.set(test_name="testA")
+ This will assign the property "testA" to the user identified by self._user_id.
+ This property can be used to segment your visitors when viewing reports.
+ """
params = params or {}
params['_p'] = self._user_id
self._call(self.KM_SET, params)
Please sign in to comment.
Something went wrong with that request. Please try again.