:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { processEvent } from '.'
import { LegacyTransformationPlugin } from '../../types'
// NOTE: This is a deprecated plugin and should never be shown to new users
export const pluginAdvancedGeoip: LegacyTransformationPlugin = {
processEvent,
template: {
free: true,
status: 'deprecated',
type: 'transformation',
id: 'plugin-plugin-advanced-geoip',
name: 'Advanced GeoIP',
description:
'This plugin will add advanced geoip properties to your events. You will not be billed for any events that this plugin drops.',
icon_url: 'https://raw.githubusercontent.com/posthog/advanced-geoip-plugin/main/logo.png',
category: ['Custom'],
code_language: 'javascript',
code: `return event`,
inputs_schema: [
{
key: 'discardIp',
templating: false,
label: 'Discard IP addresses after GeoIP?',
type: 'choice',
choices: [
{ value: 'true', label: 'true' },
{ value: 'false', label: 'false' },
],
description: 'Whether IP addresses should be discarded after doing GeoIP lookup.',
required: true,
},
{
key: 'discardLibs',
templating: false,
label: 'Discard GeoIP for libraries',
type: 'string',
description:
'Comma-separated list of libraries ($lib) for which GeoIP should be ignored (e.g. `posthog-node,posthog-python`)',
required: false,
},
],
},
}