(email, properties)
Set the given properties on a KISSmetrics user.
    :param email: The email address by which to identify the user.
    :param properties: A dictionary or properties to set on the user.
    :return:
Set the given properties on a KISSmetrics user.
    :param email: The email address by which to identify the user.
    :param properties: A dictionary or properties to set on the user.
    :return:
Set the given properties on a KISSmetrics user . : param email : The email address by which to identify the user . : param properties : A dictionary or properties to set on the user . : return :
def identify(email, properties):
    """
    Set the given properties on a KISSmetrics user.
    :param email: The email address by which to identify the user.
    :param properties: A dictionary or properties to set on the user.
    :return:
    """
    api_key = settings.ANALYTICS_IDS.get("KISSMETRICS_KEY", None)
    if api_key and analytics_enabled_for_email(email):
        km = KISSmetrics.Client(key=api_key)
        res = km.set(email, properties)
        _log_response("KM", {'email': email, 'properties': properties}, res)
        # TODO: Consider adding some better error handling for bad/failed requests.
        _raise_for_urllib3_response(res)
def identify ( email , properties ) : api_key = settings . ANALYTICS_IDS . get ( "KISSMETRICS_KEY" , None ) if api_key and analytics_enabled_for_email ( email ) : km = KISSmetrics . Client ( key = api_key ) res = km . set ( email , properties ) _log_response ( "KM" , { 'email' : email , 'properties' : properties } , res ) # TODO: Consider adding some better error handling for bad/failed requests. _raise_for_urllib3_response ( res )