# Capable Web Analytics for Developers

> Pirsch is a web analytics tool designed for developers. A powerful RESTful API, SDKs, scripts, and server-side integration allow you to fit it in your website or app with ease.

Pirsch is a web analytics tool designed for developers. A powerful RESTful API, SDKs, scripts, and server-side integration allow you to fit it in your website or app with ease.

[Start Your Free Trial](https://pirsch.io/signup) [View Live Demo](https://pirsch.pirsch.io/)

![Customers of Pirsch Analytics](https://pirsch.io/static/img/customers.png)

Trusted by 500+ Customers

![Capable Web Analytics for Developers ](https://pirsch.io/static/img/overview-light.svg "Capable Web Analytics for Developers ") ![Capable Web Analytics for Developers ](https://pirsch.io/static/img/dashboard-light.svg "Capable Web Analytics for Developers ") ![Capable Web Analytics for Developers ](https://pirsch.io/static/img/funnels-light.svg "Capable Web Analytics for Developers ") ![Capable Web Analytics for Developers ](https://pirsch.io/static/img/sessions-light.svg "Capable Web Analytics for Developers ") ![Capable Web Analytics for Developers ](https://pirsch.io/static/img/overview-dark.svg "Capable Web Analytics for Developers ") ![Capable Web Analytics for Developers ](https://pirsch.io/static/img/dashboard-dark.svg "Capable Web Analytics for Developers ") ![Capable Web Analytics for Developers ](https://pirsch.io/static/img/funnels-dark.svg "Capable Web Analytics for Developers ") ![Capable Web Analytics for Developers ](https://pirsch.io/static/img/sessions-dark.svg "Capable Web Analytics for Developers ")

![Global X](https://pirsch.io/static/img/globalx.png "Global X") ![Maglr](https://pirsch.io/static/img/maglr.png "Maglr") ![Superblog](https://pirsch.io/static/img/superblog.png "Superblog") ![Stillalive Studios](https://pirsch.io/static/img/stillalive-light.png "Stillalive Studios") ![Stillalive Studios](https://pirsch.io/static/img/stillalive-dark.png "Stillalive Studios")

![Toffolo](https://pirsch.io/static/img/toffolo.png "Toffolo") ![Studio Lenzing](https://pirsch.io/static/img/studiolenzing.png "Studio Lenzing") ![Senja](https://pirsch.io/static/img/senja.png "Senja") ![Spectate](https://pirsch.io/static/img/spectate.png "Spectate")

## Integrate It Your Way

### Easy-to-use Snippet

Pirsch provides a lightweight, drop-in JavaScript snippet that is compatible with most frameworks, website builders, and content management systems.

```html
    <script defer src="https://api.pirsch.io/pa.js"
        id="pirschjs"
        data-code="identification_code"></script>
    
```

### Flexible Plugins and Guides

Easily integrate Pirsch into your website using one of the available plugins or simple tutorials. Integrations for WordPress, Laravel, Caddy, Gatsby and more are readily available and a community of developers helps keep them up to date and constantly adding more.

![Go](https://pirsch.io/static/img/go.svg "Go") ![Vue](https://pirsch.io/static/img/vue.svg "Vue") ![Angular](https://pirsch.io/static/img/angular.svg "Angular") ![React](https://pirsch.io/static/img/react.svg "React") ![Wordpress](https://pirsch.io/static/img/wordpress.svg "Wordpress") ![Framer](https://pirsch.io/static/img/framer.svg "Framer") ![Webflow](https://pirsch.io/static/img/webflow.svg "Webflow") ![Laravel](https://pirsch.io/static/img/laravel.svg "Laravel") ![Drupal](https://pirsch.io/static/img/drupal.svg "Drupal")

### Powerful REST API

Pirsch was built from the ground up with automation in mind. Use the REST API to create dashboards, manage permissions, send traffic, and read statistics.

Fine-grained permission management makes it possible to work with a single dashboard or on an account basis, managing as many sites as you want. Whatever your use case, Pirsch integrates seamlessly into your application.

[Read the Docs](https://docs.pirsch.io/api-sdks/api-guide)

Go JavaScript PHP API

```go
    // Create the Pirsch client.
client := pirsch.NewClient(clientID, clientSecret, hostname, nil)

http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
    // Send the page hit to Pirsch.
    client.Hit(r)

    w.Write([]byte("Hello from Pirsch!"))
})
    
```

```js
        // Create the Pirsch client.
var client = new Client({
    hostname: "example.com",
    protocol: "https", // used to parse the request URL, default is http
    clientID: "",
    clientSecret: ""
});

http.createServer((req, res) => {
    // Filter for the root pathname.
    const url = new URL(req.url || "", "https://example.com");

    if(url.pathname === "/") {
        // Send the page hit to Pirsch.
        client.hit(client.hitFromRequest(req)).catch(e => console.log(e));
    }

    res.end("Hello from Pirsch!");
}).listen(8080);
    
```

```php
    require __DIR__ . '/vendor/autoload.php';

try {
    // Create the Pirsch client.
    $client = new Pirsch\Client('client_id', 'client_secret', 'example.com');
    // Send the page hit to Pirsch.
    $client->hit();
} catch(Exception $e) {
    // Something went wrong...
}
    
```

```go
    curl -X POST \
    -H "Content-Type: application/json" \
    -d '{"hostname":"example.com","url":"https://example.com/about","ip":"156.102.56.11","user_agent":"...","accept_language":"en-GB, en;q=0.9, fr;q=0.8, de;q=0.7, *;q=0.5","referrer":"https://google.com/"}' \
    -L "https://api.pirsch.io/api/v1/hit"
    
```

## Use it as a Platform

Use Pirsch as a platform and offer embedded analytics to your customers, directly in your own application or SaaS. We'll make sure everything runs smoothly and your subscription plan scales with your needs. All without the worries that come with privacy-invasive technologies.

[Read Case Study](https://pirsch.io/blog/famewall-pirsch-integration/)

## Custom Reports

Create custom reports by accessing your data through the API. Filters allow you to get exactly what you want. Data can be aggregated for different time periods or you can get a list of custom events.

## Uncompromised Performance

Our service is fast. Modern hardware and a scalable infrastructure ensure fast response times and stability. If you have ever worked with sluggish tools like Google Analytics, using Pirsch will feel like a breeze of fresh air.

## Advanced SDKs

Use our Go (Golang), JavaScript, or PHP SDK, or one provided by the community to get started quickly. All SDKs are open-source and co-developed by the community.

## Server-side Integration

Call our API from your backend for a non-blockable approach to web analytics. Instead of relying on JavaScript running in the visitor's browser, keep your site lean and improve page speed.

## Open-Source on GitHub

A lot of Pirsch is open source, including the core, SDKs, and libraries we have created for our service. So you can see for yourself how we work and how Pirsch functions. The code is available on GitHub, including a demo repository with sample applications and more.

[See All Demos](https://github.com/pirsch-analytics/demo)

## Detailed Documentation

Pirsch is well documented. We are constantly updating our documentation to make sure you always find an answer to your questions.

[Read the Docs](https://docs.pirsch.io/)

## Personal Support

We're IT specialists, not salesmen. When you contact us for support, you can be sure to get competent and professional help, whether you have questions about integration details, networking, or programming. We're here to help, and we're here to find solutions to the challenges you face.

![Pirsch Analytics Icon](https://pirsch.io/static/img/cta-light.svg) ![Pirsch Analytics Icon](https://pirsch.io/static/img/cta-dark.svg)

## Ready to Level up Your Analytics?

Try Pirsch Analytics free of charge for 30 days with no credit card required. Pick the **best Google Analytics alternative**, setting up your first website only takes a few minutes.

[Get Started For Free](https://pirsch.io/signup)
