Exemplo n.º 1
0
def track_workflow(email, event, properties=None):
    """
    Record an event in KISSmetrics.
    :param email: The email address by which to identify the user.
    :param event: The name of the event.
    :param properties: A dictionary or properties to set on the user.
    :return:
    """
    timestamp = unix_time(datetime.utcnow())   # Dimagi KISSmetrics account uses UTC
    _track_workflow_task.delay(email, event, properties, timestamp)
Exemplo n.º 2
0
def track_workflow(email, event, properties=None):
    """
    Record an event in KISSmetrics.
    :param email: The email address by which to identify the user.
    :param event: The name of the event.
    :param properties: A dictionary or properties to set on the user.
    :return:
    """
    timestamp = unix_time(
        datetime.utcnow())  # Dimagi KISSmetrics account uses UTC
    _track_workflow_task.delay(email, event, properties, timestamp)
Exemplo n.º 3
0
def track_workflow(email, event, properties=None):
    """
    Record an event in KISSmetrics.
    :param email: The email address by which to identify the user.
    :param event: The name of the event.
    :param properties: A dictionary or properties to set on the user.
    :return:
    """
    try:
        if analytics_enabled_for_email(email):
            timestamp = unix_time(datetime.utcnow())   # Dimagi KISSmetrics account uses UTC
            _track_workflow_task.delay(email, event, properties, timestamp)
    except Exception:
        notify_exception(None, "Error tracking kissmetrics workflow")
Exemplo n.º 4
0
def track_workflow(email, event, properties=None):
    """
    Record an event in KISSmetrics.
    :param email: The email address by which to identify the user.
    :param event: The name of the event.
    :param properties: A dictionary or properties to set on the user.
    :return:
    """
    try:
        if analytics_enabled_for_email(email):
            timestamp = unix_time(datetime.utcnow())   # Dimagi KISSmetrics account uses UTC
            _track_workflow_task_v2.delay(email, event, properties, timestamp)
    except Exception:
        notify_exception(None, "Error tracking kissmetrics workflow")