Can anyone give any pointers on how to access a us...
# suitecommerce
d
Can anyone give any pointers on how to access a user's leadsource value?
s
I don't think it is exposed by default to the profile model, so you'd likely need to write a service to fetch it from the customer record yourself
d
Thanks Steve. I need to get it for unregistered/not logged in customers though? I could probably create an SS1 .ss and use Commerce API getCampaignID() but have reservations about the longevity of the functionality.
s
leadsource
is a property of the customer record, so if you're not comfortable using the commerce API, you can just use SS 2.0 to fetch it
The only thing is, if they are not registered then this is probably not available
I will say that leadsource is often applied by URL parameter when the user first visits, so if that's what you're going for then you can just extract it from that