segment by source/mediumUPDATE: This script has been superseded by the GAREnhancer. All future updates will be made to this new script.

Have you ever gone to segment the content detail of a page by source/medium, only to find that you can segment by source or medium, but not both? Well those days of frustration are over, thanks to a Greasemonkey script I wrote just the other day.

Not only that, but you will also be able to segment by transaction, adgroup, and referral path anytime a segmenting opportunity comes up. Now you can see exactly which transactions are attributed to each source, medium, source/medium, keyword, campaign, new or returning visitors, and more. I’m sure everyone can think of some good uses for this.

To expand your segmenting abilities, first download the latest greasemonkey firefox add-on. Then download my script right here. You should be able to just click and install it if you already have the Greasemonkey firefox add-on installed.

A couple notes here about the script:

1. If you segment by one of the fields, then try and segment by another field, you may find that your options are once again limited. To fix this, segment by “none” first and then you should get the additional fields back. UPDATE: This issue has been resolved as of 06/06/08. Just re-download the script.
2. You can also segment by Product, Product SKU, and Product Category, but this may not work as well as anticipated. If that’s the case, you can drill down into a product and segment by source/medium or whatever report you were looking at and see the data from the other direction.

If you’ve found this tool useful or if you have any suggestions for improvement, please leave a comment. Thanks!

UPDATE: I have a new script which adds a few additional fields to segment by, such as exit pages, page titles, browser and OS combined, and others. There are also some more obscure fields whose purpose is not obvious, so if you find one of them useful then let me know how you used it! Here’s the script.

Note that if you have both scripts enabled at the same time, the second script in the list will override the first. Also, this second script makes your segment drop down rather long, so you may just want to stick with the first. I felt I should provide it, though, for completeness.

Reblog this post [with Zemanta]