Beispiel #1
0
def register_event(event_type,
                   visitor_id,
                   when,
                   data):    
    for backend in get_async_backends():
        backend.register_event(event_type,
                               visitor_id,
                               when,
                               data)
Beispiel #2
0
def create_visitor(visitor_id):
    for backend in get_async_backends():
        backend.create_visitor(visitor_id)
Beispiel #3
0
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)
Beispiel #4
0
def deduplicate(from_visitor_id, to_visitor_id):
    for backend in get_async_backends():
        backend.deduplicate(from_visitor_id,
                            to_visitor_id)

    return True
Beispiel #5
0
def label_visitor(visitor_id,
                  label):    
    for backend in get_async_backends():
        backend.label_visitor(visitor_id,
                              label)
Beispiel #6
0
def create_visitor(visitor_id):
    for backend in get_async_backends():
        backend.create_visitor(visitor_id)
Beispiel #7
0
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)
Beispiel #8
0
def deduplicate(from_visitor_id, to_visitor_id):
    for backend in get_async_backends():
        backend.deduplicate(from_visitor_id, to_visitor_id)

    return True
Beispiel #9
0
def label_visitor(visitor_id, label):
    for backend in get_async_backends():
        backend.label_visitor(visitor_id, label)
Beispiel #10
0
def register_event(event_type, visitor_id, when, data):
    for backend in get_async_backends():
        backend.register_event(event_type, visitor_id, when, data)