0.0.2 • Published 4 years ago

posthog-currency-normalization-plugin v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

posthog-currency-normalization-plugin

Normalize currencies in events. E.g. amounts in EUR, USD and GBP will all be converted to EUR.

Setup via PostHog

  1. Find the "plugins" page in PostHog.
  2. Either select the plugin from the list or copy the URL of this repository to install.
  3. Update the required settings (get the API key here) and enable the plugin.

Setup via CLI

  1. Install posthog-cli
  2. Install this plugin: posthog plugin install posthog-currency-normalization-plugin
  3. Sign up to OpenExchangeRates.org and get the API key
  4. Edit posthog.json and add update the required config variables:
{
    "name": "posthog-currency-normalization-plugin",
    "url": "https://github.com/PostHog/posthog-currency-normalization-plugin",
    "global": {
        "enabled": true,
        "config": {
            "openExchangeRatesApiKey": "<COPY KEY HERE>",
            "normalizedCurrency": "EUR",
            "amountProperty": "amount",
            "currencyProperty": "currency",
            "normalizedAmountProperty": "normalized_amount",
            "normalizedCurrencyProperty": "normalized_currency"
        }
    }
}
  1. Run PostHog
0.0.2

4 years ago

0.0.1

4 years ago