Skip to content

Google Tag Manager Server Variable Template for cleaning PII from URL query parameter by key or value.

License

Notifications You must be signed in to change notification settings

justia/gtm-pii-url-cleaner-server-variable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GTM 'Clean or Redact PII from URLs' Server Variable Template

Template Status Repo Size License


Summary

This repository contains a Google Tag Manager Server Variable template that makes it possible to clean up URLs to remove any personally identifiable information (PII) before sending them to analytics or third-party platforms.

Options

URL

A URL from event data {{ED - Page Location}} (event_data.page_location).

Query Parameter Keys

List the query parameter keys to redact, delete or mask. You can use different matching condition options.

Query Parameter Values

Query parameter values with dynamic or unknown keys can be redacted if the value matches a specified regular expression.

Examples

Tips

Make sure to default the false value to the initial input, in case any error happens during the replacement of the URL.

Contributing

See our contributing guidelines.

About

Google Tag Manager Server Variable Template for cleaning PII from URL query parameter by key or value.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages