URL Parameter Masking

URL Parameter Masking

Masks sensitive information in URL parameters (query strings) of specified properties

Configuration

OptionDescription
URL Properties to Mask
Type: dictionary
Required: True

Map of event properties containing URLs and their parameters to mask. Example: {'$current_url': 'email, password'}

Mask Value
Type: string
Required: True

The value to replace sensitive parameters with

Using our REST API you can create this transformation like so:

Terminal
# Create a new destination
curl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \
--data '{
"type": "transformation",
"name": "URL Parameter Masking",
"inputs": {
"urlProperties": {
"value": ""
},
"maskWith": {
"value": ""
}
},
"enabled": true,
"template_id": "template-url-masking"
}'