fixes page tracking bug

the page tracker was inside the jquery ready function, which I'm fairly certain was the issue.

@seldo can you quickly review?