Monitoring websites with secure pages requires the use of two different sets of Yahoo Web Analytics tracking code, one for secure pages and the other for non-secure pages. The drawback to this’s that you’re left with inconsistent tracking code across the site and care must be exercised to ensure that the correct tracking code is being used in the right place.
The solution is taken in 4 steps:
- TrackPage. Page tracking function.
- Execute TrackPage. Once the JS is loaded, execute TrackPage.
Here’s the complete code: