views:

71

answers:

2

I've been given a requirement to impliment some google tracking on an RSS feed. Currently we track when users click the RSS link but they also seem to want to track access to the RSS feed outside of that link.

I could impliment this server side but I'm just wondering whether putting google tracking code (Javascript) inside of an RSS (XML) file will actually be parsed by the browser at runtime.

+3  A: 

No. The only agent that will execute JavaScript inside an RSS file is a web RSS interface with a security hole.

bobince
I thought (and hoped) as much. Cheers.
Jamie Dixon
A: 

Nope, RSS is an XML data type. JavaScript is not valid inside of it. It'll have to be done serverside.

Richard June