mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-152775 Add GA tails to track webhelp redirects from the IDEs
This commit is contained in:
@@ -63,10 +63,18 @@ public class HelpManagerImpl extends HelpManager {
|
||||
|
||||
if (broker == null) {
|
||||
ApplicationInfoEx info = ApplicationInfoEx.getInstanceEx();
|
||||
String productVersion = info.getMajorVersion() + "." + info.getMinorVersion();
|
||||
String productCode = info.getPackageCode();
|
||||
|
||||
String url = info.getWebHelpUrl() + "?";
|
||||
|
||||
if (PlatformUtils.isJetBrainsProduct()) {
|
||||
url += "utm_source=from_product&utm_medium=help_link&utm_campaign=" + productCode + "&utm_content=" + productVersion + "&";
|
||||
}
|
||||
|
||||
if (PlatformUtils.isCLion()) {
|
||||
url += "Keyword=" + id;
|
||||
url += "&ProductVersion=" + info.getMajorVersion() + "." + info.getMinorVersion();
|
||||
url += "&ProductVersion=" + productVersion;
|
||||
|
||||
if (info.isEAP()) {
|
||||
url += "&EAP";
|
||||
|
||||
Reference in New Issue
Block a user