{"id":28545,"date":"2025-07-01T10:42:31","date_gmt":"2025-07-01T14:42:31","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=28545"},"modified":"2025-07-01T10:51:48","modified_gmt":"2025-07-01T14:51:48","slug":"how-to-create-and-configure-the-well-known-gpc-json-file-in-magento-2-cloud","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-2-cloud-well-known-gpc-json-file-creation-and-configuration","title":{"rendered":"How to create and configure the .well-known\/gpc.json file in Magento 2 Cloud"},"content":{"rendered":"\n<h2 id=\"h-what-is-the-well-known-gpc-json-file-what-is-it-used-for-and-how-is-it-created\">What is the .well-known\/gpc.json file, what is it used for, and how is it created?<\/h2>\n\n\n\n<p>The <strong>.well-known\/gpc.json<\/strong> file, located in the web root directory, informs browsers and privacy tools about your website\u2019s support for Global Privacy Control (GPC).. It contains information about the current status of GPC signal processing (enabled or disabled), version, and the date of the last update.<\/p>\n\n\n\n<p><br>The extension automatically creates the JSON file during installation. Each time the admin changes the <strong>Enabled <\/strong>switcher position in <strong>GPC configurations<\/strong> or updates the <strong>Last Update Date<\/strong> value in the \u201c<strong>GPC .well-known Settings<\/strong>\u201d, the system generates the <strong>gpc.json<\/strong> file in the <strong>.well-known directory<\/strong>, allowing third-party services to download and read it.<\/p>\n\n\n\n<h2 id=\"h-why-doesn-t-the-file-get-created-and-updated-automatically-on-magento-2-cloud\">Why doesn&#8217;t the file get created and updated automatically on Magento 2 Cloud?<\/h2>\n\n\n\n<p>The creation and updating of the <strong>.well-known\/gpc.json<\/strong> file in Magento Cloud differ from the standard automatic process.<\/p>\n\n\n\n<p>Magento Cloud has limitations related to file system access and editing, which can prevent the automatic creation or updating of this file. This may prevent the module from automatically creating and updating the file. As a result, the file won\u2019t be created, and won\u2019t be available from the frontend. If this occurs, you\u2019ll see corresponding messages in the Magento logs and in the \u201c<strong>GPC .well-known Settings<\/strong>\u201d configuration section.<\/p>\n\n\n\n<h2 id=\"h-the-well-known-gpc-json-file-configuration-in-magento-2-cloud\">The .well-known\/gpc.json file configuration in Magento 2 Cloud<\/h2>\n\n\n\n<h3 id=\"h-step-1-gpc-json-generation\">Step 1. gpc.json generation<\/h3>\n\n\n\n<p><strong>Option A &#8211; via extension in the local dev<\/strong><\/p>\n\n\n\n<p>This is the simplest way to create the needed file. In a local development environment, it&#8217;s enough to set the target extension configurations. After saving configurations, the <strong>.well-known\/gpc.json<\/strong> file will be automatically updated accordingly.<\/p>\n\n\n\n<p><strong>Option B &#8211; manually in the local dev<\/strong><\/p>\n\n\n\n<p>In the project root, run the command that will create the required folder in the web root and generate the file with the sample structure:<br><\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-bash\">mkdir &lt;web root>\/.well-known\ncat > &lt;web root>\/.well-known\/gpc.json &lt;&lt; 'EOF'\n{\n    \"gpc\": true,\n    \"version\": \"1.0\",\n    \"created\": \"2025-06-24\"\n}\nEOF<\/code><\/pre><\/div>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">In the file content, it is necessary to update the following values to the specific ones:<\/p>\n\n\n\n<ul><li>&#8220;<strong>gpc<\/strong>&#8220;: true or false, depending on the Enabled switcher condition in the extension configurations<\/li><li>&#8220;<strong>version<\/strong>&#8220;<\/li><li>&#8220;<strong>created<\/strong>&#8220;: the last update date in <strong>YYYY-MM-DD<\/strong> format, for example \u201c2025-06-24\u201d<\/li><\/ul>\n<\/div><\/div>\n\n\n\n<h3 id=\"h-step-2-deploying-the-changes-in-production\">Step 2. Deploying the changes in production<\/h3>\n\n\n\n<p>Ensure that the gpc.json file contains the correct values for the gpc, version, and created keys. Place it in the repository at <strong>&lt;web root>\/.well-known\/gpc.json<\/strong>, commit the changes, and push them to the remote repository. Once the deployment is complete, the <strong>gpc.json<\/strong> file will appear on the website and will be available for reading.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-warning\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Important Notice:<\/p>\n\n\n\n<p>Each time you change the <strong>Enabled <\/strong>setting or update the <strong>Last Update Date<\/strong>, repeat these steps to regenerate and deploy the updated <strong>gpc.json<\/strong> file.<\/p>\n<\/div><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is the .well-known\/gpc.json file, what is it used for, and how is it created? The .well-known\/gpc.json file, located in the web root directory, informs browsers and privacy tools about your website\u2019s support for Global Privacy Control (GPC).. It contains information about the current status of GPC signal processing (enabled or disabled), version, and the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-2-cloud-well-known-gpc-json-file-creation-and-configuration\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to create and configure the .well-known\/gpc.json file in Magento 2 Cloud&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[147],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to create and configure the .well-known\/gpc.json file in Magento 2 Cloud - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"What is the .well-known\/gpc.json file, what is it used for, and how is it created? The .well-known\/gpc.json file, located in the web root directory,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-2-cloud-well-known-gpc-json-file-creation-and-configuration\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create and configure the .well-known\/gpc.json file in Magento 2 Cloud\" \/>\n<meta property=\"og:description\" content=\"What is the .well-known\/gpc.json file, what is it used for, and how is it created? The .well-known\/gpc.json file, located in the web root directory,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-2-cloud-well-known-gpc-json-file-creation-and-configuration\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-01T14:42:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-01T14:51:48+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to create and configure the .well-known\/gpc.json file in Magento 2 Cloud - Plumrocket Documentation","description":"What is the .well-known\/gpc.json file, what is it used for, and how is it created? The .well-known\/gpc.json file, located in the web root directory,","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:\/\/plumrocket.com\/docs\/magento-2-cloud-well-known-gpc-json-file-creation-and-configuration","og_locale":"en_US","og_type":"article","og_title":"How to create and configure the .well-known\/gpc.json file in Magento 2 Cloud","og_description":"What is the .well-known\/gpc.json file, what is it used for, and how is it created? The .well-known\/gpc.json file, located in the web root directory,","og_url":"https:\/\/plumrocket.com\/docs\/magento-2-cloud-well-known-gpc-json-file-creation-and-configuration","og_site_name":"Plumrocket Documentation","article_published_time":"2025-07-01T14:42:31+00:00","article_modified_time":"2025-07-01T14:51:48+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-2-cloud-well-known-gpc-json-file-creation-and-configuration#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-2-cloud-well-known-gpc-json-file-creation-and-configuration","name":"How to create and configure the .well-known\/gpc.json file in Magento 2 Cloud - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2025-07-01T14:42:31+00:00","dateModified":"2025-07-01T14:51:48+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"description":"What is the .well-known\/gpc.json file, what is it used for, and how is it created? The .well-known\/gpc.json file, located in the web root directory,","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-2-cloud-well-known-gpc-json-file-creation-and-configuration#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-2-cloud-well-known-gpc-json-file-creation-and-configuration"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-2-cloud-well-known-gpc-json-file-creation-and-configuration#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Docs","item":"https:\/\/plumrocket.com\/docs"},{"@type":"ListItem","position":2,"name":"General Questions","item":"https:\/\/plumrocket.com\/docs\/general"},{"@type":"ListItem","position":3,"name":"How to create and configure the .well-known\/gpc.json file in Magento 2 Cloud"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","caption":"Plumrocket"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/28545"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=28545"}],"version-history":[{"count":5,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/28545\/revisions"}],"predecessor-version":[{"id":28550,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/28545\/revisions\/28550"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=28545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=28545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=28545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}