Maybe this topic will be helpful for you? If you trigger from a tag, you will need to get the session and page.