Optimizely homepage experiment intercepting multiple URLs

RESOLVED FIXED

Status

www.mozilla.org
Pages & Content
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: agibson, Assigned: jpetto)

Tracking

Production

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
STR:

1.) Visit https://www.mozilla.org/
2.) See if you get opted into the homepage redesign experiment and get redirected to: https://www.mozilla.org/en-US/?v=a

If so, proceed to step 3, else clear your cookies and try step 1 again

3.) Click on the 'About' link in the main navigation

Expected results:

Navigate to the /about page

Actual results:

You get kicked and redirected back to the home page again.

This seems to happen for multiple URLs, but not every page. I can't seem to visit:

/about/
/firefox/dektop/
/firefox/new/
/firefox/android/

and more .. all seem to redirect back to the home page again.
(Reporter)

Comment 1

2 years ago
I've logged into Optimizely and paused the experiment called "[Bug 1275626] Home page design, Concept A". Sorry to have to do this, but I think it's best until we figure out what's not quite right.
(Reporter)

Comment 2

2 years ago
I think the problem might be the targeting URL matching and page on the site?

^.*www\.mozilla\.org\/en\-.+\/$
(Reporter)

Comment 3

2 years ago
Looking at past experiments, it seems for the homepage a "simple match" has been used as opposed to a regexp:

https://www.mozilla.org/en-US/ (simple match)

Perhaps this is all that's needed (?), but I'll defer to Jon/Craig as I'm not as familiar with Optimizely.
(Reporter)

Comment 4

2 years ago
I also noticed that the en-GB page does not show the survey link:

https://www.mozilla.org/en-GB/?v=a

Looking in the code, the survey gets included for en-US only:

https://github.com/mozilla/bedrock/blob/master/bedrock/mozorg/templates/mozorg/home/home-a.html#L271

I'm not quite sure if this is another issue or intentional (should the experiment should be targeting en-US only?).
(Assignee)

Comment 5

2 years ago
The regex was overly aggressive. It would match /en-ANYTHING as long as a / was the last character.

I should have caught this during review, but was hurrying to get things launched yesterday.

Making waste with the haste. :(

Changed the experiment URL to a simple match of https://www.mozilla.org/en-US/.
(Assignee)

Comment 6

2 years ago
Previous data has been cleared and experiment has been re-started.
(Assignee)

Comment 7

2 years ago
Received variation through experiment and confirmed other links [1] are no longer intercepted.

[1] Tested /about/, /firefox/new/, /firefox/desktop/, /contribute/, and /privacy/.
Assignee: nobody → jon
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.