Просмотр исходного кода

Added track for redirect guide on aux click

jnfrati 4 лет назад
Родитель
Сommit
9f78f5ef13

+ 9 - 0
dashboard/src/main/home/onboarding/steps/ConnectRegistry/forms/FormFlow.tsx

@@ -140,6 +140,15 @@ const FormFlowWrapper: React.FC<Props> = ({ currentStep }) => {
         <GuideButton
           href={FormTitle[provider].doc}
           target="_blank"
+          onAuxClick={() => {
+            trackRedirectToGuide({
+              step: stepHandler.currentStepName,
+              guide_url: FormTitle[provider].doc,
+              provider,
+            });
+            // Will allow the anchor tag to redirect properly
+            return true;
+          }}
           onClick={() => {
             trackRedirectToGuide({
               step: stepHandler.currentStepName,

+ 9 - 0
dashboard/src/main/home/onboarding/steps/ProvisionResources/forms/FormFlow.tsx

@@ -146,6 +146,15 @@ const FormFlowWrapper: React.FC<Props> = ({ currentStep }) => {
         <GuideButton
           href={FormTitle[provider]?.doc}
           target="_blank"
+          onAuxClick={() => {
+            trackRedirectToGuide({
+              step: stepHandler.currentStepName,
+              guide_url: FormTitle[provider].doc,
+              provider,
+            });
+            // Will allow the anchor tag to redirect properly
+            return true;
+          }}
           onClick={() => {
             trackRedirectToGuide({
               step: stepHandler.currentStepName,