0.0.2 • Published 4 years ago
posthog-currency-normalization-plugin v0.0.2
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
- Find the "plugins" page in PostHog.
- Either select the plugin from the list or copy the URL of this repository to install.
- Update the required settings (get the API key here) and enable the plugin.
Setup via CLI
- Install posthog-cli
- Install this plugin:
posthog plugin install posthog-currency-normalization-plugin
- Sign up to OpenExchangeRates.org and get the API key
- 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"
}
}
}
- Run PostHog