Mobile app version of vmapp.org
Login or Join
Berryessa370

: Google pre-rendering causing double and triple events Is it possible to detect google chrome and firefox prerendering on the server side, or in .htaccess, and defer the prerendering for the purpose

@Berryessa370

Posted in: #GoogleChrome #Javascript #Laravel #Php #Tracking

Is it possible to detect google chrome and firefox prerendering on the server side, or in .htaccess, and defer the prerendering for the purpose of monitoring traffic and website events, or do I need to move my website event tracking into javascript. =/

I am using laravel and angular js.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Berryessa370

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shelton105

Unfortunately, it seems as though different browsers will act differently.


Firefox: Will send the header X-moz: prefetch whenever a page is "pre-fetched."
Chrome: You're out of luck, simply because it forces you to use the Page Visibility API, which is JS-based. The term "pre-rendering" applies exclusively to Chrome, as Google seem to be doing their own thing on this one.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme