Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base: 98c6e9413f
compare: 91d57b04af
Checking mergeability… Don't worry, you can still create the pull request.
  • 4 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Nov 30, 2011
@neevor neevor Add set method to add properties to a user. d3eda1e
@neevor neevor Add gitignore to ignore pyc files. a32cb75
@neevor neevor 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.
Daniel Gross Merge pull request #1 from neevor/master
Updated to add set api call.
Showing with 15 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +14 −0 src/greplin/tornado/
1  .gitignore
@@ -0,0 +1 @@
14 src/greplin/tornado/
@@ -29,6 +29,7 @@ class Kissmetrics(object):
KM_EVENT = 'e'
KM_ALIAS = 'a'
+ KM_SET = 's'
def __init__(self, api_key, user_id=None, use_https=True):
@@ -76,6 +77,19 @@ def event(self, name, **params):
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)

No commit comments for this range

Something went wrong with that request. Please try again.