@analytics_task()
def track_confirmed_account_on_hubspot(webuser):
    vid = _get_user_hubspot_id(webuser)
    if vid:
        # Only track the property if the contact already exists.
        try:
            domain = webuser.domain_memberships[0].domain
        except (__HOLE__, AttributeError):
            domain = ''

        _track_on_hubspot(webuser, {
            'confirmed_account': True,
            'domain': domain
        })
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/analytics/tasks.py/track_confirmed_account_on_hubspot