Closed
Bug 1189797
Opened 11 years ago
Closed 11 years ago
Add Google Analytics, Optimizely to Bugzilla
Categories
(bugzilla.mozilla.org :: General, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: garethc, Unassigned)
References
Details
The Firefox Growth Team would like to understand how much traffic we get from Firefox and non-Firefox browsers on bugzilla.
We used to have GA on bugzilla, but it was removed a while back. There was significant traffic going to this property back in 2013 and we would like to test a potential growth opportunity for a targeted Firefox Developer Edition message.
Implementation of a such a message would be similar to a test that was run on MDN, where an update bar appeared at the top of MDN pages inviting users to try Firefox Developer Edition.
Would it be possible to get Optimizely / GA on bugzilla to gauge this growth opportunity?
Comment 1•11 years ago
|
||
Mark/Bryon: can you help us here given that we had GA removed from bugzilla previously and those insights would be helpful from a developer edition perspective. Thanks!
Flags: needinfo?(mcote)
Flags: needinfo?(glob)
Comment 2•11 years ago
|
||
I'm very much against adding Optimizely to Bugzilla from a security standpoint. Remote JS is a great way to compromise Bugzilla.
See 1006972 for more information about why Google Analytics was removed.
Flags: sec-review?
Comment 3•11 years ago
|
||
(In reply to Reed Loden [:reed] (use needinfo?) from comment #2)
> I'm very much against adding Optimizely to Bugzilla from a security
> standpoint. Remote JS is a great way to compromise Bugzilla.
>
> See 1006972 for more information about why Google Analytics was removed.
I understand the concerns. Can we discuss security compromise examples of both Google Analytics and Optimizely on BMO? The tags should only fire on public bugs and nothing on private or confidential bugs.
Comment 4•11 years ago
|
||
(In reply to Chris More [:cmore] from comment #3)
> (In reply to Reed Loden [:reed] (use needinfo?) from comment #2)
> > I'm very much against adding Optimizely to Bugzilla from a security
> > standpoint. Remote JS is a great way to compromise Bugzilla.
> >
> > See 1006972 for more information about why Google Analytics was removed.
>
> I understand the concerns. Can we discuss security compromise examples of
> both Google Analytics and Optimizely on BMO? The tags should only fire on
> public bugs and nothing on private or confidential bugs.
Doesn't matter if they only fire on public bugs. Remote JS means that they have full control over the DOM and can intercept a user's cookies or just perform some malicious action on behalf of whatever user is viewing the bug (or any other page on Bugzilla). The type of bug the user visits is irrelevant.
Comment 5•11 years ago
|
||
We could use subresource integrity (SRI) to verify that a version of the javascript we trust is being pushed to BMO users.
CSP would also help. Chris: did we ever find a way to use CSP with optimizely and Google Analytics? (I can't find the bug with the previous discussion).
Comment 6•11 years ago
|
||
(In reply to Julien Vehent [:ulfr] {use needinfo} from comment #5)
> We could use subresource integrity (SRI) to verify that a version of the
> javascript we trust is being pushed to BMO users.
SRI really isn't production ready yet. Is it even supported by most stable versions of browsers yet? My understanding is not. We can't expect all Bugzilla users to be running Nightly.
Interesting enough, the button at https://srihash.org says my current up-to-date version of Nightly doesn't support SRI, while http://w3c-test.org/subresource-integrity/subresource-integrity.html seems to say my browser does support it.
Spec seems to still be changing as well, last I looked.
Separate from that, you'll need providers to actually work with you on SRI, which I don't know of any major ones that do. Basically, this requires versioned .js files, as the hash needs to stay the same.
> CSP would also help. Chris: did we ever find a way to use CSP with
> optimizely and Google Analytics? (I can't find the bug with the previous
> discussion).
I'm curious to see how CSP could work with Optimizely at all, considering its whole purpose is run continuously changing remote JS / CSS on a page for A/B testing, which means `unsafe-eval` and the like.
For Google Analytics, you could load the JS locally, but you lose out on any changes, as this stuff isn't versioned at all by the upstream. Google Analytics itself should work fine with CSP, though (via `script-src`). Perhaps you're thinking of Google Tag Manager, which is similar in actual technical functionality to what Optimizely does?
(In reply to Gareth Cull [:garethc] from comment #0)
> The Firefox Growth Team would like to understand how much traffic we get
> from Firefox and non-Firefox browsers on bugzilla.
that information is available from the apache logs - there is no need to deploy optimizely or ga to gather this data.
> CSP would also help
bugzilla isn't CSP compatible, and due to how extensions work i doubt upstream will ever be CSP compliant. it should be possible to do for bmo but the effort required would be significant.
garath, if you can email me the sort of data you're after i can generate a report for you from the apache logs.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(mcote)
Flags: needinfo?(glob)
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•