AA.com CPM Calculator Extension (Apple Safari, Mozilla Firefox, and Google Chrome)
#1
Original Poster
Join Date: Jul 2007
Location: DCA
Programs: AA, AS, Hyatt, National
Posts: 971
AA.com CPM Calculator Extension (Apple Safari, Mozilla Firefox, and Google Chrome)
Fellow FlyerTalkers,
Finding myself often wanting to compare CPMs on the fly, I have written an Apple Safari, Mozilla Firefox, and Google Chrome extension/plugin that will do the work for me, and thought I'd share.
The Basics
Current version: 1.1.3 (20 May 2011)
General info at flyertools.kduarte.com
Safari: Install NinjaKit first, then install the AA CPM script from userscripts.org.
Firefox: Install GreaseMonkey first, then install the AA CPM script from userscripts.org.
Chrome: Install directly from the Google Chrome Extension Gallery (no need to install the script separately).
Help & discussion/suggestions here! If you see any NaN errors, please let me know so that I can fix them.
Motivation
This extension was born out of my own need to calculate CPMs. I sincerely want to see the extension improve, and I hope that users will submit feedback in this thread. Given such feedback, I hope to release future versions when appropriate.
Functionality
The extension will run on the Price & Schedule matrix pages at aa.com, and will (currently) only compute CPMs for the most discounted economy fare column (the left-most one).
The extension assumes distances from GPS coordinates of airports (which may vary slightly from AA's official flight distances), and adds $9.95 in taxes per segment, up to two segments, for those customers purchasing in dollars. Obviously, this assumption is inaccurate for flights to/from AK, HI, PR, USVI, and abroad, but still provides a general guide to compare CPMs by itinerary.
Screenshot

Nota Bene
This extension is written entirely by me on volunteer time. It is in no way written, distributed, endorsed, supported, or in any other way related to American Airlines other than using pricing data AA provides publicly on its website. The extension demands none (zero, zip, nada) of AA's web server resources to calculate CPMs.
Peace.
Finding myself often wanting to compare CPMs on the fly, I have written an Apple Safari, Mozilla Firefox, and Google Chrome extension/plugin that will do the work for me, and thought I'd share.
The Basics
Current version: 1.1.3 (20 May 2011)
General info at flyertools.kduarte.com
Safari: Install NinjaKit first, then install the AA CPM script from userscripts.org.
Firefox: Install GreaseMonkey first, then install the AA CPM script from userscripts.org.
Chrome: Install directly from the Google Chrome Extension Gallery (no need to install the script separately).
Help & discussion/suggestions here! If you see any NaN errors, please let me know so that I can fix them.
Motivation
This extension was born out of my own need to calculate CPMs. I sincerely want to see the extension improve, and I hope that users will submit feedback in this thread. Given such feedback, I hope to release future versions when appropriate.
Functionality
The extension will run on the Price & Schedule matrix pages at aa.com, and will (currently) only compute CPMs for the most discounted economy fare column (the left-most one).
The extension assumes distances from GPS coordinates of airports (which may vary slightly from AA's official flight distances), and adds $9.95 in taxes per segment, up to two segments, for those customers purchasing in dollars. Obviously, this assumption is inaccurate for flights to/from AK, HI, PR, USVI, and abroad, but still provides a general guide to compare CPMs by itinerary.
Screenshot

Nota Bene
This extension is written entirely by me on volunteer time. It is in no way written, distributed, endorsed, supported, or in any other way related to American Airlines other than using pricing data AA provides publicly on its website. The extension demands none (zero, zip, nada) of AA's web server resources to calculate CPMs.
Peace.
Last edited by imagineertobe; May 20, 11 at 7:08 am Reason: Updated info

#4
Join Date: Jan 2009
Location: WAS
Programs: AA EXP2MM, DL DM, UA PP <=> HH DM/Marr PE/Hyatt G/IHG P/ CC G, FT RA ( Recovering Addict)
Posts: 3,886

#6
Join Date: Aug 2008
Location: Boston, MA (BOS)
Programs: AA EXP MM, DL Gold, SPG Plat, AMEX Plat, HHonors Gold, RC Rewards Gold, VIPorter
Posts: 5,559
This is awesome! Thanks for sharing! I don't like using the on-screen calculators, so now my TI from high school math will be collecting dust.

#9
Join Date: Jan 2006
Location: London
Programs: AA EXP 2 MM
Posts: 2,823
This is really useful! I would also find it very helpful it it could display the total miles (I always seem to be short of EQM!).
Fares quoted in £ (UK resident) include tax, so the calculation nearly works for international fares in £. To get it exactly right, my request would be, if the fare is quoted in £, when updating the display with cpm info, retain the £ symbol (
), and do not add 9.95.
Fares quoted in £ (UK resident) include tax, so the calculation nearly works for international fares in £. To get it exactly right, my request would be, if the fare is quoted in £, when updating the display with cpm info, retain the £ symbol (


#10
Join Date: Feb 2010
Programs: AA PLT, CX Silver, SPG
Posts: 214
Oh........ my god.. Jesus reborn!

#13
FlyerTalk Evangelist
Join Date: Mar 2004
Location: SJC
Programs: AA EXP, BA Silver, AS 75K Gold MVP, and some hotel stuff...
Posts: 32,624
Well, I don't use Chrome (Firefox junkie), so I won't be able to try this out and add comments, but I just wanted to extend kudos to the OP for doing this. Very cool way to give back to the community^
Cheers.
Cheers.

#15
Join Date: Mar 2010
Location: DCA, SEA, AUS
Programs: AA Plat, Marriott Gold
Posts: 260
imagineertobe - This is quite great. Worth downloading and trying Chrome just to use it. Thanks!
