PHPackages                             bnomei/kirby3-posthog - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. bnomei/kirby3-posthog

ActiveKirby-plugin

bnomei/kirby3-posthog
=====================

Kirby Plugin for interfacing with Posthog

5.2.0(6mo ago)2466MITPHPPHP &gt;=8.2CI failing

Since Mar 25Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/bnomei/kirby3-posthog)[ Packagist](https://packagist.org/packages/bnomei/kirby3-posthog)[ RSS](/packages/bnomei-kirby3-posthog/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (18)Used By (0)

Kirby Posthog
=============

[](#kirby-posthog)

[![Release](https://camo.githubusercontent.com/86b896491b225e141382cff4d269c52cadcdd8a41fbf39b33102f7eb4980bc56/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f626e6f6d65692f6b69726279332d706f7374686f673f636f6c6f723d6165383166662669636f6e3d676974687562266c6162656c)](https://camo.githubusercontent.com/86b896491b225e141382cff4d269c52cadcdd8a41fbf39b33102f7eb4980bc56/68747470733a2f2f666c61742e62616467656e2e6e65742f7061636b61676973742f762f626e6f6d65692f6b69726279332d706f7374686f673f636f6c6f723d6165383166662669636f6e3d676974687562266c6162656c)[![Discord](https://camo.githubusercontent.com/36eaef1b06f4996feb7587aa3281dcbd658e57535bc6b5e10110ed108e7a7a03/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f646973636f72642f626e6f6d65693f636f6c6f723d3732383964612669636f6e3d646973636f7264266c6162656c)](https://discordapp.com/users/bnomei)[![Buymecoffee](https://camo.githubusercontent.com/62e55d1129b82bf9c2fd4656451e81ab87a9787e7c9676ca58276532ed9666ee/68747470733a2f2f666c61742e62616467656e2e6e65742f62616467652f69636f6e2f646f6e6174653f69636f6e3d6275796d6561636f6666656526636f6c6f723d464638313346266c6162656c)](https://www.buymeacoffee.com/bnomei)

Kirby Plugin for interfacing with [Posthog](https://posthog.com/)

Install
-------

[](#install)

- unzip [master.zip](https://github.com/bnomei/kirby3-posthog/archive/master.zip) as folder `site/plugins/kirby3-posthog` or
- `git submodule add https://github.com/bnomei/kirby3-posthog.git site/plugins/kirby3-posthog` or
- `composer require bnomei/kirby3-posthog`

Setup
-----

[](#setup)

You can set the apikey and host in the config.

**site/config/config.php**

```
return [
    // other config settings ...
    'bnomei.posthog.apikey' => 'YOUR-KEY-HERE',
    'bnomei.posthog.host' => 'YOUR-HOST-HERE',
];
```

You can also set a callback if you use the [dotenv Plugin](https://github.com/bnomei/kirby3-dotenv).

**site/config/config.php**

```
return [
    // other config settings ...
    'bnomei.posthog.apikey' => function() { return env('POSTHOG_APIKEY'); },
    'bnomei.posthog.host' => function() { return env('POSTHOG_HOST'); },
];
```

### Javascript

[](#javascript)

Output the tracking Javascript via the snippet included in the plugin.

```
