Report the user's name and company to Marketo
Also fixes the API to report the other changes (username and email) as well
This commit is contained in:
parent
860942ece1
commit
1a61ef4e04
8 changed files with 78 additions and 24 deletions
|
@ -122,7 +122,8 @@ def common_login(db_user, permanent_session=True):
|
|||
session.permanent_session_lifetime = convert_to_timedelta(session_timeout_str)
|
||||
|
||||
# Inform our user analytics that we have a new "lead"
|
||||
user_analytics.create_lead(db_user.email, db_user.username)
|
||||
user_analytics.create_lead(db_user.email, db_user.username, db_user.given_name,
|
||||
db_user.family_name, db_user.company)
|
||||
return True
|
||||
else:
|
||||
logger.debug('User could not be logged in, inactive?.')
|
||||
|
|
Reference in a new issue