Piwik.js

Hi,

we just realized that our implementation of Piwik on some of clients is a huge risk, since if our server where we have Piwik installed is not available for some time, then their websites will take very long time to respond since its waiting for loading piwik.js.

We use async tracking, but is there any way around this? Would it be possible to on the client side set a timeout so if the client doesnt get a response within 2 sec the page would just quit waiting for the piwik.js to load?

Thanks,
Pontus

if you’re using Async tag, it should not block the loading of the customers websites ?

Hi Matt,

thanks for your response. I believe we use Async tag, see below:

[size=x-small][/size]

But we could see that the clients site took long time to finish loading. Also see attached image. Also we just got the same problem with this call:

02:01:10.763 21.537 653 0 GET (Error) NS_ERROR_NET_TIMEOUT http://piwik1.adeptic.com/piwik.php?action_name=NetRelations%20—%20Webbyrå%20som%20skapar%20effekt%20med%20EPiServer%2C%20SharePoint%20och%20Wordpress&idsite=9&rec=1&r=960764&h=12&m=39&s=25&url=http%3A%2F%2Fwww.netrelations.se%2F&_id=d0c717fdf7d8c439&_idts=1360064366&_idvc=1&_idn=1&_refts=0&_viewts=1360064366&pdf=1&qt=0&realp=0&wma=1&dir=0&fla=1&java=1&gears=0&ag=1&cookie=1&res=1920x1080

Is it possible to set the timeout to for example 2 sec instead?

Any help would be very much appreciated.

Thanks,
Pontus

Just log the requests to a logfile and import the piwik logs later on separately. The log server can be a really lightweight and dumb webserver without much logic.

Ha, thats brilliant! Thanks Thomas :slight_smile: