# 開発者向け – Pirsch Analytics

> Pirschは、開発者向けに設計されたWeb分析ツールです。強力なRESTful API、SDK、スクリプト、サーバーサイドの統合により、あなたのウェブサイトやアプリに簡単に組み込むことができます。

🎉 ブラックフライデー・クーポンコードで20%オフ — [さらに詳しく](https://pirsch.io/ja/pricing)

# 開発者のための優れたWeb分析

Pirschは、開発者向けに設計されたWeb分析ツールです。強力なRESTful API、SDK、スクリプト、サーバーサイドの統合により、あなたのウェブサイトやアプリに簡単に組み込むことができます。

[無料トライアルを始める](https://pirsch.io/ja/signup) [ライブデモを見る](https://pirsch.pirsch.io/)

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

500人以上の顧客に信頼されています

![開発者のための優れたWeb分析 ](https://pirsch.io/static/img/overview-light.svg "開発者のための優れたWeb分析 ") ![開発者のための優れたWeb分析 ](https://pirsch.io/static/img/dashboard-light.svg "開発者のための優れたWeb分析 ") ![開発者のための優れたWeb分析 ](https://pirsch.io/static/img/funnels-light.svg "開発者のための優れたWeb分析 ") ![開発者のための優れたWeb分析 ](https://pirsch.io/static/img/sessions-light.svg "開発者のための優れたWeb分析 ") ![開発者のための優れたWeb分析 ](https://pirsch.io/static/img/overview-dark.svg "開発者のための優れたWeb分析 ") ![開発者のための優れたWeb分析 ](https://pirsch.io/static/img/dashboard-dark.svg "開発者のための優れたWeb分析 ") ![開発者のための優れたWeb分析 ](https://pirsch.io/static/img/funnels-dark.svg "開発者のための優れたWeb分析 ") ![開発者のための優れたWeb分析 ](https://pirsch.io/static/img/sessions-dark.svg "開発者のための優れたWeb分析 ")

![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")

## 自分流に統合する

### 使いやすいスニペット

Pirschは、ほとんどのフレームワーク、ウェブサイトビルダー、コンテンツ管理システムと互換性のある軽量で組み込みやすいJavaScriptスニペットを提供します。

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

### 柔軟なプラグインとガイド

利用可能なプラグインや簡単なチュートリアルを使用して、Pirschをあなたのウェブサイトに簡単に統合できます。WordPress、Laravel、Caddy、Gatsbyなどの統合はすぐに利用可能であり、開発者コミュニティがそれらを最新の状態に保ち、継続的に追加しています。

![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")

### 強力なREST API

Pirschは、自動化を念頭に置いて一から構築されました。REST APIを使用してダッシュボードを作成し、権限を管理し、トラフィックを送信し、統計を読み取ります。

詳細な権限管理により、単一のダッシュボードまたはアカウントベースで作業を行い、好きなだけサイトを管理できます。使用シナリオに関わらず、Pirschはあなたのアプリケーションにシームレスに統合されます。

[ドキュメントを読む](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)

## 分析を次のレベルに引き上げますか？

クレジットカード不要でPirsch Analyticsを30日間無料でお試しいただけます。Google Analyticsの最良の代替を選択し、最初のウェブサイトの設定には数分しかかかりません。

[無料で始める](https://pirsch.io/ja/signup)
