diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/CTASummary.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/CTASummary.tsx index 09800e42a6..76dd63b118 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/CTASummary.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/CTASummary.tsx @@ -15,7 +15,7 @@ export const CTASummary = ({ questionSummary }: CTASummaryProps) => {
-

Clickthrough Rate (CTR)

+

Click-through rate (CTR)

{convertFloatToNDecimal(questionSummary.ctr.percentage, 1)}% @@ -23,7 +23,7 @@ export const CTASummary = ({ questionSummary }: CTASummaryProps) => {

- {questionSummary.ctr.count} {questionSummary.ctr.count === 1 ? "response" : "responses"} + {questionSummary.ctr.count} {questionSummary.ctr.count === 1 ? "click" : "clicks"}

diff --git a/apps/web/playwright/js.spec.ts b/apps/web/playwright/js.spec.ts index e1f0abd423..6c40460941 100644 --- a/apps/web/playwright/js.spec.ts +++ b/apps/web/playwright/js.spec.ts @@ -124,7 +124,7 @@ test.describe("JS Package Test", async () => { await page.waitForTimeout(1000); await expect(page.getByRole("button", { name: "Responses50%" })).toBeVisible(); await expect(page.getByText("1 Responses", { exact: true }).first()).toBeVisible(); - await expect(page.getByText("Clickthrough Rate (CTR)100%")).toBeVisible(); + await expect(page.getByText("Click-through rate (CTR)100%")).toBeVisible(); await expect(page.getByText("Somewhat disappointed100%")).toBeVisible(); await expect(page.getByText("Founder100%")).toBeVisible(); await expect(page.getByText("People who believe that PMF").first()).toBeVisible(); diff --git a/packages/js-core/src/lib/widget.ts b/packages/js-core/src/lib/widget.ts index 2576012d34..cd5286a301 100644 --- a/packages/js-core/src/lib/widget.ts +++ b/packages/js-core/src/lib/widget.ts @@ -35,7 +35,7 @@ export const triggerSurvey = async (survey: TSurvey, action?: string): Promise { setIsSurveyRunning(true); if (survey.delay) { - logger.debug(`Delaying survey by ${survey.delay} seconds.`); + logger.debug(`Delaying survey "${survey.name}" by ${survey.delay} seconds.`); } const product = config.get().state.product; @@ -63,7 +63,7 @@ const renderWidget = async (survey: TSurvey, action?: string) => { const displayLanguage = getLanguageCode(survey, attributes); //if survey is not available in selected language, survey wont be shown if (!displayLanguage) { - logger.debug("Survey not available in specified language."); + logger.debug(`Survey "${survey.name}" is not available in specified language.`); setIsSurveyRunning(true); return; }