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.
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
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.
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