When a user logs into some of our sites I set a unique ID, a nonPII GUID, into a data source page.wid. I also take this data source and persist it in a cookie value wid, so that if and when a person returns and does not log in to our site or tries to log in and fails, I can still see who the individuals are. I also look for and grab the Omniture visitorID this is because we have some users still on our older systems that do not have the nonPII GUID available. This extension is scoped to just SiteCatalyst because I call the read cookie function s.c_r('s_vid'). I would like to get these values into a single data source but in rank order. 1) if page.wid is available that should trump all other settings. 2) If page.wid is not available it should fall to using the cookie value wid. 3) If page.wid and cookie wid is not available it should look to use the Omniture VisitorID. It gets a bit tricky when I look to use the omniture VisitorID because s.c_r('s_vid') will only work when scoped to sitecatalyst as I have to wait for the site catalyst code to load before calling it. However I want to be able to share this across other tags that are in use.
Suggestions/Ideas appreciated.