Commit 7f27705a authored by Martin Šrámek's avatar Martin Šrámek Committed by Commit Bot

Add a referrer to the Advanced Protection Program URL

So that we can attribute new Advanced Protection users to the
newly added entrypoint.

Bug: 1032584
Change-Id: I8f8a9a6c17008fb25843c89133a08c9cc2362ef6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2080483Reviewed-by: default avatarTheodore Olsauskas-Warren <sauski@google.com>
Reviewed-by: default avatardpapad <dpapad@chromium.org>
Commit-Queue: Martin Šrámek <msramek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#747933}
parent aa3d081a
......@@ -108,7 +108,7 @@ Polymer({
/** @private */
onAdvancedProtectionProgramLinkClick_() {
window.open('https://landing.google.com/advancedprotection/');
window.open(loadTimeData.getString('advancedProtectionURL'));
},
/** @private */
......
......@@ -1222,6 +1222,19 @@ void AddPrivacyStrings(content::WebUIDataSource* html_source,
IDS_SETTINGS_SAFETY_CHECK_SAFE_BROWSING_SUB_LABEL_DISABLED_BY_ADMIN,
base::ASCIIToUTF16(chrome::kWhoIsMyAdministratorHelpURL)));
// The link to the Advanced Protection Program landing page, with a referrer
// from Chrome settings.
GURL advanced_protection_url(
"https://landing.google.com/advancedprotection/");
advanced_protection_url = net::AppendQueryParameter(advanced_protection_url,
"utm_source", "Chrome");
advanced_protection_url = net::AppendQueryParameter(
advanced_protection_url, "utm_medium", "ChromeSecuritySettings");
advanced_protection_url = net::AppendQueryParameter(
advanced_protection_url, "utm_campaign", "ChromeSettings");
html_source->AddString("advancedProtectionURL",
advanced_protection_url.spec());
AddPersonalizationOptionsStrings(html_source);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment