def register_event(event_type, visitor_id, when, data): for backend in get_async_backends(): backend.register_event(event_type, visitor_id, when, data)
def create_visitor(visitor_id): for backend in get_async_backends(): backend.create_visitor(visitor_id)
def set_user(visitor_id, user_id): user = User.objects.get(id=user_id) for backend in get_async_backends(): backend.set_user(visitor_id, user)
def deduplicate(from_visitor_id, to_visitor_id): for backend in get_async_backends(): backend.deduplicate(from_visitor_id, to_visitor_id) return True
def label_visitor(visitor_id, label): for backend in get_async_backends(): backend.label_visitor(visitor_id, label)