Update docs/services/kiss_metrics.rst

This commit is contained in:
xthepoet 2012-08-13 08:17:56 -07:00
parent 255dd4f387
commit d12bb6de2d

View file

@ -110,6 +110,26 @@ context processor, the latter clobbers the former.
.. _kiss-metrics-event:
Alias
-----
Alias is used to associate one identity with another.
This most likely will occur if a user is not signed in yet,
you assign them an anonymous identity and record activity for them
and they later sign in and you get a named identity.
For example::
context = RequestContext({
'kiss_metrics_alias': {'my_registered@email' : 'my_user_id'},
})
return some_template.render(context)
The output script tag will then include the corresponding properties as
documented in the `KISSmetrics alias API`_ docs.
.. _`KISSmetrics set API`: http://support.kissmetrics.com/apis/common-methods#alias
Recording events
----------------