Closed Bug 1127905 Opened 9 years ago Closed 9 years ago

Create HTML pages on AMO for Firefox First Run Add-On Testing

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cmore, Assigned: jpetto)

References

Details

Attachments

(3 files)

We are going to be creating a few Firefox First Run variations and testing the impact of usage on people who install add-ons during their onboarding experience. Since we want these to be one-click, the button will have to be an iframe on addons.mozilla.org, because of the existing whitelisting in Firefox.

Jon Petto will be working on two small HTML pages similar to bug 1063170. We can store these HTML pages in a /static/html/mozorg/ directory.

We are on a tight deadline here and need to get this test launched on Feb 12th thus these pages need to be coded, reviewed, merged, and pushed to AMO the week of Feb 9th for testing.
Assignee: nobody → jon
Blocks: 1120706
Attached file GitHub PR
PR marked as "do not merge" in case Lightbeam XPI URL changes in the next day or so.
clouser: The next AMO push is Feb 11th. We want to launch our test for 2 weeks so we have enough data before Firefox 36 comes on at the end of the month. Is it possible to get the AMO push changed to Feb 10th (or earlier) so that we can QA the entire test? Let me know. Thanks.
Flags: needinfo?(wclouser)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
We are going to have to add GA to these HTML pages to get conversion rates for these buttons. Without GA, we will have no idea on how many people interact with them.

Add this GA AMO tag in the head of these pages:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-36116321-7']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

Then onclick of each of the "add to Firefox buttons", push the following events for each page:

_gaq.push(['_trackEvent', 'add-on installs', 'mozorg iframe clicks', 'lightbeam']);

_gaq.push(['_trackEvent', 'add-on installs', 'mozorg iframe clicks', 'ghostery']);

We should also create a generic function onclick to push back to the parent frame so that we can switch content on the www.mozilla.org page after someone interacts with them. I would probably pass along in the function which add-on was clicked so we can tell if one or both have been clicked and if we want specific content on the parent frame page to change.

jpetto: I would pause your current work and get these changes out to the AMO team to do on their next push since they were so kind on doing an out-of-cycle push already.
Status: RESOLVED → REOPENED
Flags: needinfo?(jon)
Resolution: FIXED → ---
code freeze is friday (2 days)
(In reply to Wil Clouser [:clouserw] from comment #5)
> code freeze is friday (2 days)

Ok, jpetto is working on it now. It is a quick change and we should have added it before, but we thought we could capture the event from the parent frame, but that's a browser no-no.
Attached file GA/tracking PR
Flags: needinfo?(jon)
jpetto: your testing on -dev is fine?

clouserw: will this be pushed out on the 11th?
Flags: needinfo?(wclouser)
Flags: needinfo?(jon)
yup
Flags: needinfo?(wclouser)
:cmore - Yep, tested locally iframing the buttons from addons-dev and cross-frame communication is happening. I also saw GA events firing on the buttons. You can confirm the GA stuff on dev for double-check purposes:

https://addons-dev.allizom.org/static/html/mozorg/ghostery.html
https://addons-dev.allizom.org/static/html/mozorg/lightbeam.html
Flags: needinfo?(jon)
Verified in GA!
These were pushed yesterday and verified:

https://addons.mozilla.org/static/html/mozorg/ghostery.html
https://addons.mozilla.org/static/html/mozorg/lightbeam.html
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: