The purpose of this code is to demonstrate how to obtain goals that were triggered during a visitor's interaction, after their session has ended.
This is a useful sweet spot as this data can be sent to an external system where it can be used to help marketers by informing them of what customer’s and leads are doing on their website.