User:Staszyk/Testing track.js on stage

From MozillaWiki
Jump to: navigation, search

I've been working with Pascal and Wil Clouser on providing some more data about the traffic we receive at mozilla-europe.org and mozilla.com (including the in-product start pages). Pease see [1] for more iformation.

I'd like to ask those among you who are Firebug-enabled (or any other JS-debugger-enabled for that matter) to help testing the script we've put on stage.

Below I describe a few testcases to make things easier and quicker. Since I use a Polish version of Firefox, I use "pl" in URLs. Please replace them with your locale's code.

Report problems on the discussion page or in the Activemembers list thread. Thanks!

TEST 1 (download)

  1. Go to: https://www.trunk.stage.mozilla.com/en-US/
  2. Log in.
  3. Turn Firebug on.
  4. Put a breakpoint at the 68th line of the __utm.js script:
              67: function urchinTracker(page) {
 (breakpoint) 68:   if (_udl.protocol=="file:") return;
  1. Click the download link and see if the 'page' value at the breakpoint is equal to: /download-tracking/pl/firefox-2.0.0.6/win/using:firefox2 (for a Polish user of Firefox2 on Windows). Check for your locale with different browsers and/or OSes, if you can.
Ignore the first 'page' value you will see ("/firefox/download/0706abtest/?mozhpcontrol").

TEST 2 (main navigation)

  1. Go to: https://www.trunk.stage.mozilla.com/en-US/
  2. Assuming that you're already logged in and Firebug has been enabled, ignore the warning about an assignment to an undeclared variable in line 156 of the __utm.js script.
  3. Check if the breakpoint at the 68th line of the __utm.js script is still there:
              67: function urchinTracker(page) {
 (breakpoint) 68:   if (_udl.protocol=="file:") return;
  1. In the main navigation menu (you may hit Esc after chacking with Firebug, to stay on the same page)
    1. click 'Products', result: nothing happens, you arrive on the products page.
    2. click 'Add-ons', result: 'page' equals "/outbound/en-US/addons.mozilla.org/"
    3. click 'Support', result: nothing happens, you arrive on the support page.
    4. click 'Developers', result: 'page' equals "/outbound/en-US/developer.mozilla.org/"
    5. click 'Blog', result: 'page' equals "/outbound/en-US/blog.mozilla.com/"
    6. click 'Store', result: 'page' equals "/outbound/en-US/store.mozilla.org/"
    7. click 'About', result: nothing happens, you arrive on the about page.


TEST 3 (in-product pages for your locale)

  1. Go to: https://pl.www.trunk.stage.mozilla.com/pl/firefox/2.0.0.6/firstrun/ (replace "pl" with your locale)
  2. Assuming that you're already logged in and Firebug has been enabled, ignore the warning about an assignment to an undeclared variable in line 156 of the __utm.js script.
  3. Check if the breakpoint at the 68th line of the __utm.js script is still there:
              67: function urchinTracker(page) {
 (breakpoint) 68:   if (_udl.protocol=="file:") return;
  1. Navigate to https://pl.www.trunk.stage.mozilla.com/pl/firefox/central/
  2. Click the links on this page:
    1. http://pl.add-ons.mozilla.com/pl/firefox/ (result: page = "/outbound/pl/pl.add-ons.mozilla.com/pl/firefox/")
    2. https://pl.www.trunk.stage.mozilla.com/pl/firefox/help/
    3. On the help page, click through the available links.
      1. Every outbound link (pointing to a page in a domain different than $lang.www.trunk.stage.mozilla.com) should trigger the urchinTracker function. Check the 'page' parameter for the correctness (is the indicated locale and URL right?).
      2. Also, the support page link (in locales other than en-US) (e.g. https://pl.www.trunk.stage.mozilla.com/pl/support/) should also trigger the tracking function (as it redirects to the mozilla-europe.org/$lang/support page)
    4. Go to https://pl.www.trunk.stage.mozilla.com/pl/firefox/about/
      1. In locales other than en-US, in the paragraph that says "Our award-winning, open source software products and technologies are offered free-of-charge to people everywhere in over 40 languages." click the "software products" link. The tracking function should be triggered (it's also a redirection to mozilla-europe.org).


TEST 4 (in-product pages for en-US)

  1. Go to https://www.trunk.stage.mozilla.com/en-US/firefox/about/
  2. Assuming that you're already logged in and Firebug has been enabled, ignore the warning about an assignment to an undeclared variable in line 156 of the __utm.js script.
  3. Check if the breakpoint at the 68th line of the __utm.js script is still there:
              67: function urchinTracker(page) {
 (breakpoint) 68:   if (_udl.protocol=="file:") return;
  1. In the paragraph that says "Our award-winning, open source software products and technologies are offered free-of-charge to people everywhere in over 40 languages." click the "software products" link. The tracking function should not be triggered.
  2. Go to https://www.trunk.stage.mozilla.com/en-US/firefox/help/
  3. Click the 'Main Firefox Support Page' link. The tracking function should not be triggered.

Thanks a lot!

--Staszyk 05:08, 5 September 2007 (PDT)