Chartbeat

Handling Virtual Page Changes

If your site "changes pages" without actually going to a new url, using for example AJAX, you can inform Chartbeat about these new pages by using the virtualPage() function.

For example, if the page the user is loading is http://example.com/page1, but the page changes to the virtual page http://example.com/page2, you should call this:

        pSUPERFLY.virtualPage("/page2", "New Title");
    

The second parameter is the title for the new virtual page, and is optional.

This can also be used to track page "changes" inside a Flash application by calling this function through the ExternalInterface class.