[release] src/goSurvey: double survey probability and send half to v2 survey

Change-Id: I1fc2664d7f28bf2653dc60c3fe468c04802e2306
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/320431
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
(cherry picked from commit cbdd3280a012791a7abfd2b66d9bf82dabfc57b3)
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/321839
Reviewed-by: Robert Findley <rfindley@google.com>
diff --git a/src/goSurvey.ts b/src/goSurvey.ts
index 56385c3..6169358 100644
--- a/src/goSurvey.ts
+++ b/src/goSurvey.ts
@@ -108,7 +108,9 @@
 	// the user.
 	// Probability is set based on the # of responses received, and will be
 	// decreased if we begin receiving > 200 responses/month.
-	const probability = 0.03;
+	// Doubled the probability for survey v2 experiment.
+	// TODO(hyangah): switch back to 0.03.
+	const probability = 0.03 * 2;
 	cfg.promptThisMonth = Math.random() < probability;
 	if (cfg.promptThisMonth) {
 		// end is the last day of the month, day is the random day of the
@@ -149,11 +151,11 @@
 				cfg.prompt = true;
 				const goplsEnabled = latestConfig.enabled;
 				const usersGoplsVersion = await getLocalGoplsVersion(latestConfig);
-				await vscode.env.openExternal(
-					vscode.Uri.parse(
-						`https://google.qualtrics.com/jfe/form/SV_ekAdHVcVcvKUojX?usingGopls=${goplsEnabled}&gopls=${usersGoplsVersion}&extid=${extensionId}`
-					)
-				);
+				const surveyURL =
+					Math.random() < 0.5
+						? `https://google.qualtrics.com/jfe/form/SV_ekAdHVcVcvKUojX?usingGopls=${goplsEnabled}&gopls=${usersGoplsVersion}&extid=${extensionId}` // v1
+						: `https://google.qualtrics.com/jfe/form/SV_8kbsnNINPIQ2QGq?usingGopls=${goplsEnabled}&gopls=${usersGoplsVersion}&extid=${extensionId}`; // v2
+				await vscode.env.openExternal(vscode.Uri.parse(surveyURL));
 			}
 			break;
 		case 'Not now':