How to associate site tracking to Contact

I have posted a variation to this question here:
How to associate site tracking to Contact (After Instantiation)
…for those who need to provide the email address after the script is already running.
Thanks - John