探索,發現,愛好、學習,記錄,分享。
學海無涯,天涯若比鄰,三人行,必有我師。

Piwik now integrated within CloudFlare

Would you like to know some quick fix in order to make your website load faster? Would you like your users to have a better experience on your website? One answer to that is what we call a CDN. Content Delivery Network (CDN) is a system of distributed servers that deliver content to a user based on various criterias such as geolocation.

And the good news for you is that Piwik got recently integrated to a popular CDN: CloudFlare.

What is CloudFlare?

As previously said, CloudFlare is a content delivery network (CDN).

cf logo v rgb

The three major advantages of using CloudFlare as a CDN are:

  • it is making your website load faster by providing a nearby location to your files to users
  • it also help detecting potential attacks like DDoS and takes away these risks for you
  • it runs one of the largest, fastest, and most reliable managed DNS service in the world

Automatically add Piwik tracking code to your website

With the integration of Piwik to CloudFlare, you can now deploy the Piwik tracking code directly through your CloudFlare account instead of tweaking the source code of your website.

In order to do that, all you need is to log in to your CloudFlare account and click on “Apps”. Then look for Piwik within the search bar:

piwik analytics cloudflare

Once done, click on “Preview” on your site to enter your credentials (Piwik URL and website ID):

Piwik Analytics installation

Click “install” to finish the setup. The Piwik tracking code is now installed on each page of your website.

If you have previously added the tracking code manually to your website and now use the Piwik app, don’t forget to remove the tracking code from your website. Otherwise you end up tracking every user twice.

Important note: the Piwik CloudFlare integration only concerns the Piwik tracking code integration. For the Piwik app on Cloudflare to work you will need to have a running Piwik installed on your server, or you can start a free trial on the Piwik Analytics Cloud.

版權聲明:本文采用知識共享 署名4.0國際許可協議 [BY-NC-SA] 進行授權
轉載事宜:如需轉載需徵得應允,轉載必須注明來源於本站的信息。
文章名称:《Piwik now integrated within CloudFlare》
文章链接:https://www.thefreesky.com/blog/25493.html
本站資源僅供個人學習交流,請於下載後24小時內刪除,不允許用於商業用途,否則法律問題自行承擔。

評論 抢沙发