Adding checks

Hello @arnaudbreton,

I need a check for location change because I'm using angular-ui-router in my project and I think it's causing duplicate pageview events if I'm loading multiple views on one route.

Let me know if you find this change acceptable.

Thanks!