User Analytics and Behavior Tracking with Django Rest Framework
I want to find analytics and create user story every time different clicks (views in Django rest view) are called (as endpoints) by client (iPhone app)
I found out here: http://mixpanel-celery.readthedocs.org/en/latest/introduction.html to do this using mixpanel-celery
So I have to write a few lines of pretty much the same code (i.e. view name as event name (like FeedView or NotificationView or ProfileView, id and name request.user). Is there a way to follow DRY and refactor this code somewhere, or does such a library exist in conjunction with django / rest view views?
result = EventTracker.delay(
'my_event',
{'distinct_id': 1},
token='YOUR_API_TOKEN',
)
result.wait()
+3
source to share
No one has answered this question yet
Check out similar questions: