Page MenuHomePhabricator

Add campaign param to the ContentTranslation redirect from Special:AboutTopic to measure resulting translations
Closed, ResolvedPublicBUG REPORT

Description

Add campaign url parameter when redirecting from Special:AboutTopic to Content Translation. For example: campaign=articleplaceholder

This will allow the Content translation analytics to properly identify and analyse the number of "Create article" clicks originated from Special:AboutTopic and ended up in real articles.

For example: Navigate to https://nn.wikipedia.org/wiki/Spesial:AboutTopic/Q3532812?useskin=vector, click on "Create article" link, observe the CX URL, The url is missing campaign param

Derived Requirement

Ensure that when users click the "Create article" link from *Special\:AboutTopic*, the redirect URL to Content Translation (CX) includes the campaign=articleplaceholder parameter for analytics tracking.

Test Steps

Test Case 1: Ensure campaign parameter is present in CX redirect URL from Special\:AboutTopic

  1. Navigate to the AboutTopic page: https://nn.wikipedia.org/wiki/Spesial:AboutTopic/Q3532812?useskin=vector
  2. Click the "Create article" link.
  3. Observe the redirect URL to the Content Translation tool.
  4. ✅❓❌⬜ AC1: Confirm that the URL includes the campaign=articleplaceholder parameter.

QA Results - Prod

ACStatusDetails
1T389752#10846071

Event Timeline

Change #1138453 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ArticlePlaceholder@master] Add campaign param to ContentTranslation link

https://gerrit.wikimedia.org/r/1138453

SBisson triaged this task as Medium priority.
SBisson moved this task from Incoming to Needs Code Review on the LPL Hypothesis board.

@KCVelaga_WMF could you please add a new "article_placeholder" event_source to the schema?

Let me know if you prefer a different phab task for it or you can just link it here.

Thanks

Change #1138825 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] Dashboard open event source for articleplaceholder campaign

https://gerrit.wikimedia.org/r/1138825

santhosh raised the priority of this task from Medium to Needs Triage.EditedApr 28 2025, 5:05 AM

Please use same campaign parameter. The ArticlePlaceholder patch passes articleplaceholder as campaign param. CX Config and event source config should use the same. article_placeholder does not match.

Change #1138825 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Dashboard open event source for articleplaceholder campaign

https://gerrit.wikimedia.org/r/1138825

Change #1138453 merged by jenkins-bot:

[mediawiki/extensions/ArticlePlaceholder@master] Add campaign param to ContentTranslation link

https://gerrit.wikimedia.org/r/1138453

ngkountas triaged this task as Medium priority.May 12 2025, 11:03 AM

Change #1144643 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250512

https://gerrit.wikimedia.org/r/1144643

Change #1144643 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250512

https://gerrit.wikimedia.org/r/1144643

@SBisson Confirmed that the URL includes the campaign=articleplaceholder parameter as seen in the gif. I will move this to Sign-off. Thanks for all your work!

Test Result - Prod

Status: ✅ PASS
Environment: Prod
OS: macOS Sequoia 15.4.1
Browser: Chrome 136
Device: MBA
Emulated Device: NA

Test Artifact(s):
https://nn.wikipedia.org/wiki/Spesial:AboutTopic/Q3532812?useskin=vector

Test Steps

Test Case 1: Ensure campaign parameter is present in CX redirect URL from Special\:AboutTopic

  1. Navigate to the AboutTopic page: https://nn.wikipedia.org/wiki/Spesial:AboutTopic/Q3532812?useskin=vector
  2. Click the "Create article" link.
  3. Observe the redirect URL to the Content Translation tool.
  4. AC1: Confirm that the URL includes the campaign=articleplaceholder parameter.

2025-05-21_13-07-02.mp4.gif (900×1 px, 3 MB)

GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF moved this task from Needs QA to Design Signoff on the LPL Hypothesis board.