{"id":354,"date":"2026-07-15T23:12:54","date_gmt":"2026-07-15T21:12:54","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=354"},"modified":"2026-07-15T23:12:54","modified_gmt":"2026-07-15T21:12:54","slug":"tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/","title":{"rendered":"Tutorial: Server-Side IP Anonymization: GA4, Adobe Launch, and Jentis"},"content":{"rendered":"<p>In server-side tracking architectures, masking IP addresses before transmission to analytics endpoints is a critical step for data protection. The following guide details the technical configuration required to implement server-side IP anonymization across three major platforms: Server-Side Google Tag Manager (sGTM), Adobe Experience Platform (Adobe Launch), and Jentis.<\/p>\n<h3>1. Server-Side GTM (sGTM) for GA4<\/h3>\n<p>Anonymizing an IP address in sGTM requires creating a custom Variable Template using Sandboxed JavaScript, as standard browser-based JavaScript variables are not supported in a server environment.<\/p>\n<ol>\n<li>Navigate to the <strong>Templates<\/strong> section in the server container and click <strong>New<\/strong> under Variable Templates.<\/li>\n<li>In the template editor, go to the <strong>Code<\/strong> tab and insert the following Sandboxed JavaScript code:<\/li>\n<\/ol>\n<pre><code>const getEventData = require('getEventData');\nconst ip = getEventData('ip_override') || getEventData('ip');\n\nif (ip && typeof ip === 'string') {\n  return ip.replace(\/\\.[^.]+$\/, '.0');\n}\nreturn '0.0.0.0';<\/code><\/pre>\n<ol start=\"3\">\n<li>Go to the <strong>Permissions<\/strong> tab and ensure the template has permission to read the <code>ip<\/code> and <code>ip_override<\/code> keys from event data.<\/li>\n<li>Save the template with a recognizable name, such as <em>Masked IP<\/em>.<\/li>\n<li>Navigate to <strong>Variables<\/strong>, create a new variable using this template, and save it.<\/li>\n<li>Open the GA4 Tag. Under <strong>Parameters to Add \/ Edit<\/strong>, set the parameter name to <code>ip_override<\/code> and the value to the newly created variable.<\/li>\n<\/ol>\n<h3>2. Adobe Launch (Server-Side \/ AEP Edge Network)<\/h3>\n<p>In an Adobe Experience Platform server-side setup, IP obfuscation is handled directly within the Datastream configuration.<\/p>\n<ol>\n<li>Access the Adobe Experience Platform Data Collection interface.<\/li>\n<li>Navigate to the <strong>Datastreams<\/strong> configuration menu.<\/li>\n<li>Select the specific Datastream used for routing the server-side traffic.<\/li>\n<li>Edit the <strong>Adobe Analytics<\/strong> service configuration within the stream.<\/li>\n<li>Enable the toggle labeled <strong>Mask IP Address<\/strong>. This setting instructs the Edge Network to automatically truncate the last octet of the IP address before forwarding it to the Analytics processing servers.<\/li>\n<\/ol>\n<h3>3. Jentis<\/h3>\n<p>Jentis offers built-in, centralized privacy controls for server-side data manipulation.<\/p>\n<ol>\n<li>Open the Jentis Data Capture Control Panel.<\/li>\n<li>Navigate to the <strong>Data Protection<\/strong> or <strong>Privacy<\/strong> settings section.<\/li>\n<li>Locate the PII (Personally Identifiable Information) masking rules.<\/li>\n<li>Create a new masking rule targeting the IP address parameter. The platform provides a pre-configured masking operation (truncation of the last octet) which can be applied either globally to all tools or specifically to a single destination.<\/li>\n<li>Save and publish the configuration to ensure the raw IP is dropped at the Jentis server level.<\/li>\n<\/ol>\n<h3>The Impact of IP Anonymization on GA4 Geolocation Data<\/h3>\n<p>The anonymization of IP addresses profoundly impacts the accuracy and granularity of geolocation reporting in Google Analytics 4. GA4 relies heavily on the visitor&#8217;s IP address to map sessions to specific geographic entities, such as cities, regions, and Internet Service Providers (ISPs). When the last octet of an IP address is truncated (e.g., altering <code>192.168.1.55<\/code> to <code>192.168.1.0<\/code>), the source data loses its host-level uniqueness.<\/p>\n<p>The immediate consequence is a significant reduction in geographic precision. While country-level data remains highly accurate, city-level attribution is often lost. The obfuscated IP address typically maps to a broader regional hub or the ISP&#8217;s main routing center, rather than the user&#8217;s actual municipality. Consequently, GA4 reports will exhibit a sharp increase in &#8220;Not Set&#8221; values for the &#8220;City&#8221; dimension, or display an artificial concentration of users in major metropolitan areas where ISP hubs are located.<\/p>\n<p>Furthermore, this loss of granularity affects behavioral modeling, localized marketing attribution, and the ability to build hyper-local audience segments. Google&#8217;s internal machine learning models, which fill in data gaps, also receive a less precise initial signal, rendering local trend analysis less reliable. Organizations must therefore weigh the strict compliance benefits of IP masking against the structural degradation of local geographic insights.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In server-side tracking architectures, masking IP addresses before transmission to analytics endpoints is a critical step for data protection. The following guide details the technical configuration required to implement server-side IP anonymization across three major platforms: Server-Side Google Tag Manager (sGTM), Adobe Experience Platform (Adobe Launch), and Jentis. 1. Server-Side GTM (sGTM) for GA4 Anonymizing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[113],"tags":[],"class_list":["post-354","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tutorial: Server-Side IP Anonymization: GA4, Adobe Launch, and Jentis - Lukas Wojcik - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tutorial: Server-Side IP Anonymization: GA4, Adobe Launch, and Jentis - Lukas Wojcik - Blog\" \/>\n<meta property=\"og:description\" content=\"In server-side tracking architectures, masking IP addresses before transmission to analytics endpoints is a critical step for data protection. The following guide details the technical configuration required to implement server-side IP anonymization across three major platforms: Server-Side Google Tag Manager (sGTM), Adobe Experience Platform (Adobe Launch), and Jentis. 1. Server-Side GTM (sGTM) for GA4 Anonymizing [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-15T21:12:54+00:00\" \/>\n<meta name=\"author\" content=\"luky\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"luky\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-analytics\\\/tutorials\\\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-analytics\\\/tutorials\\\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\\\/\"},\"author\":{\"name\":\"luky\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"Tutorial: Server-Side IP Anonymization: GA4, Adobe Launch, and Jentis\",\"datePublished\":\"2026-07-15T21:12:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-analytics\\\/tutorials\\\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\\\/\"},\"wordCount\":572,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-analytics\\\/tutorials\\\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-analytics\\\/tutorials\\\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-analytics\\\/tutorials\\\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\\\/\",\"name\":\"Tutorial: Server-Side IP Anonymization: GA4, Adobe Launch, and Jentis - Lukas Wojcik - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-07-15T21:12:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-analytics\\\/tutorials\\\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-analytics\\\/tutorials\\\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/digital-analytics\\\/tutorials\\\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorial: Server-Side IP Anonymization: GA4, Adobe Launch, and Jentis\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"luky\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"luky\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/author\\\/luky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tutorial: Server-Side IP Anonymization: GA4, Adobe Launch, and Jentis - Lukas Wojcik - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/","og_locale":"en_US","og_type":"article","og_title":"Tutorial: Server-Side IP Anonymization: GA4, Adobe Launch, and Jentis - Lukas Wojcik - Blog","og_description":"In server-side tracking architectures, masking IP addresses before transmission to analytics endpoints is a critical step for data protection. The following guide details the technical configuration required to implement server-side IP anonymization across three major platforms: Server-Side Google Tag Manager (sGTM), Adobe Experience Platform (Adobe Launch), and Jentis. 1. Server-Side GTM (sGTM) for GA4 Anonymizing [&hellip;]","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-07-15T21:12:54+00:00","author":"luky","twitter_card":"summary_large_image","twitter_misc":{"Written by":"luky","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/"},"author":{"name":"luky","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"Tutorial: Server-Side IP Anonymization: GA4, Adobe Launch, and Jentis","datePublished":"2026-07-15T21:12:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/"},"wordCount":572,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/","name":"Tutorial: Server-Side IP Anonymization: GA4, Adobe Launch, and Jentis - Lukas Wojcik - Blog","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"datePublished":"2026-07-15T21:12:54+00:00","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/digital-analytics\/tutorials\/tutorial-server-side-ip-anonymization-ga4-adobe-launch-and-jentis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Tutorial: Server-Side IP Anonymization: GA4, Adobe Launch, and Jentis"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"luky","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"luky"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"],"url":"https:\/\/www.lukaswojcik.com\/blog\/author\/luky\/"}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=354"}],"version-history":[{"count":1,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/354\/revisions"}],"predecessor-version":[{"id":355,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/354\/revisions\/355"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}