[wp-hackers] Inserting Google Analytics into RSS with a plugin

Beau Lebens beau at dentedreality.com.au
Wed Jul 15 19:13:27 UTC 2009


> I was thinking that it would be easy enough to insert the GA tracking
> code into the footer of each post in the RSS feed (with a few extra
> variables to segment the resulting data). Obviously some readers would
> fail to use the javascript and others might strip it, but in many
> cases it *should* work as expected, especially for people reading RSS
> inside their browsers (which is a lot of people as I understand it).
> So it wouldn't get every visitor, but it would at least increase our
> readership numbers and stop us from guessing blindly about them.

Any remotely security-conscious feed reader (even if it's
browser-based) will strip remote JavaScript from being loaded inline.

You might be able to emulate something with an image/tracking-pixel
based solution tho?


More information about the wp-hackers mailing list