{"repo":"pirsch-analytics/pirsch-php-proxy","free":true,"listed":false,"github":"https://github.com/pirsch-analytics/pirsch-php-proxy","clone":"git clone https://github.com/pirsch-analytics/pirsch-php-proxy.git","description":"A self-hosted proxy for Pirsch Analytics.","language":"PHP","stars":12,"topics":[],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"Pirsch PHP Proxy A self-hosted proxy for the Pirsch Analytics JavaScript snippets. Why should I use a proxy? The benefit of using a proxy is that your website will only make first-party requests. The JavaScript snippets are hosted on your own server. Requests to pirsch.io will be proxyed through your server, preventing them from being blocked by ad blockers. Additionally, you can create rollup views and send data to multiple dashboards with a single request from the client. Installation Download the latest release archive from the releases section on GitHub and extract it to your server. Create an API client (or several) on the Pirsch dashboard and edit the config.php file to suit your needs. clients takes a list of API clients. The ID is optional if you are using an access key instead of an oAuth client. The proxy will send all page views and events to all configured clients. So if you want to send statistics to two dashboards, you can add another client by appending it to the list. Usage Once you have installed the proxy on your server, you can add the Pirsch JavaScript snippet to your website. Here is an example with the default configuration. As the proxy uses fopen to fetch the necessary files via the Pirsch.io API, make sure to enable the allow url fopen option. For some shared hosting providers (like Hetzner), this option is disabled per default. Local development The config.php takes a baseURL parameter to configure a local Pirsch mock implementation. License MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/pirsch-analytics","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pirsch-analytics/pirsch-php-proxy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}