Is there a way in c# to get the name of the last goal triggered by the current visitor?
A simple conceptual example: Bob visitors the homepage and clicks on a button (triggering a goal called "my button click" Bob then fills out a contact form (triggering a goal called "contact form submitted")
Is there a good way in my back-end code (given I know Bob is current looking at the site) to get the fact that Bob's last triggered goal was "contact form submitted"?
I figure if that's not possible, I might be able to store a custom field against the visitor when the goal is triggered - but that seems unnecessary as the information should already be in the Mongo DB?
Solution is on Sitecore 7.5.