User:Staszyk/Testing track.js on stage
From MozillaWiki
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!
Contents
TEST 1 (download)
- Go to: https://www.trunk.stage.mozilla.com/en-US/
- Log in.
- Turn Firebug on.
- Put a breakpoint at the 68th line of the __utm.js script:
67: function urchinTracker(page) { (breakpoint) 68: if (_udl.protocol=="file:") return;
- 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").
- Go to: https://www.trunk.stage.mozilla.com/en-US/
- 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.
- 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;
- In the main navigation menu (you may hit Esc after chacking with Firebug, to stay on the same page)
- click 'Products', result: nothing happens, you arrive on the products page.
- click 'Add-ons', result: 'page' equals "/outbound/en-US/addons.mozilla.org/"
- click 'Support', result: nothing happens, you arrive on the support page.
- click 'Developers', result: 'page' equals "/outbound/en-US/developer.mozilla.org/"
- click 'Blog', result: 'page' equals "/outbound/en-US/blog.mozilla.com/"
- click 'Store', result: 'page' equals "/outbound/en-US/store.mozilla.org/"
- click 'About', result: nothing happens, you arrive on the about page.
TEST 3 (in-product pages for your locale)
- Go to: https://pl.www.trunk.stage.mozilla.com/pl/firefox/2.0.0.6/firstrun/ (replace "pl" with your locale)
- 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.
- 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;
- Navigate to https://pl.www.trunk.stage.mozilla.com/pl/firefox/central/
- Click the links on this page:
- http://pl.add-ons.mozilla.com/pl/firefox/ (result: page = "/outbound/pl/pl.add-ons.mozilla.com/pl/firefox/")
- https://pl.www.trunk.stage.mozilla.com/pl/firefox/help/
- On the help page, click through the available links.
- 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?).
- 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)
- Go to https://pl.www.trunk.stage.mozilla.com/pl/firefox/about/
- 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)
- Go to https://www.trunk.stage.mozilla.com/en-US/firefox/about/
- 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.
- 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;
- 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.
- Go to https://www.trunk.stage.mozilla.com/en-US/firefox/help/
- Click the 'Main Firefox Support Page' link. The tracking function should not be triggered.
Thanks a lot!
--Staszyk 05:08, 5 September 2007 (PDT)