Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Add Optimizely experiment 3540700460 #3

Merged
merged 1 commit into from Oct 8, 2015

Conversation

openjck
Copy link
Contributor

@openjck openjck commented Oct 6, 2015

No description provided.

// Regexp used for targeting
function snippetRegexp() {
'use strict';
return /^.*www\.mozilla\.org\/.+\/firefox\/new\/.+utm_source=google.+utm_medium=paidsearch.+utm_campaign=sem2015Q3.*$/;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this test is en-US only, could simplify the regex a bit by specifying locale.

@jpetto
Copy link
Contributor

jpetto commented Oct 7, 2015

One small nit on the URL targeting regex, but otherwise looks good! r+wc

@openjck openjck force-pushed the optimizely-3540700460-sem-campaign branch from f3a9c28 to b99d22d Compare October 7, 2015 18:57
@openjck
Copy link
Contributor Author

openjck commented Oct 7, 2015

Updated 😄

// Regexp used for targeting
function snippetRegexp() {
'use strict';
return /^.*www\.mozilla\.org\/en\-US/firefox\/new\/.+utm_source=google.+utm_medium=paidsearch.+utm_campaign=sem2015Q3.*$/;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last nit - escape the backslash before firefox.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, great catch. Updated!

@openjck openjck force-pushed the optimizely-3540700460-sem-campaign branch from b99d22d to 01b9fe8 Compare October 7, 2015 19:38
@jpetto
Copy link
Contributor

jpetto commented Oct 8, 2015

All good! r+

jpetto added a commit that referenced this pull request Oct 8, 2015
@jpetto jpetto merged commit 4eb7fb3 into mozilla:master Oct 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants