Search

mpexo

  • This site is proudly listed as a mobile blog on mpexo.

Count per Day

  • 53Visitors today:

Recent Comments

    Testimonials

    “I just wanted to let you know how much we appreciate the work that you guys have done in assisting us… not only in working through our issues but in keeping us informed along the way. It really is a pleasure to work with such a professional organization that obviously takes pride in their work. I look forward to our continued successes.”



    David Bloom
    Big Apple Blog

    UserOnline

    HTML5 History API tracking

    posted by clicky 8:15 PM
    Wednesday, April 30, 2014

    If you use the HTML5 History API on your site, good news! Clicky now automatically supports it.

    This type of navigation typically only reloads a small portion of your page to inject new content, which means our tracking code (previously) would not be executed again since that part of the page would be static — unless you manually added calls to clicky.log or clicky.pageview when you executed history.pushState or history.replaceState.

    Clicky will now automatically track calls to both pushState and replaceState, as well as listen for the window.onpopstate event that occurs when a visitor clicks back or forward in their browser.

    If for some reason you need to disable this new functionality, for example you were already logging calls manually, you can do so with the new clicky_custom.history_disable option.

    Long term, we want to replace our own custom hashbang-ish navigation that we use on clicky.com with the History API. This automatic support of logging these methods will be a good motivator.



    Leave a Reply

    You must be logged in to post a comment.

    Blog WebMastered by All in One Webmaster.

    Switch to our mobile site