Events Calendar Feed

This post is to keep track of an issue, not really a question.

I’m trying to get the Events Calendar to export as a feed for inclusion in Google Calendar / Android devices / iPhones etc…

Looking at the Events Calendar plugin support forum, I determined the feature exists at this URL:
http://www.pedaltrout.com/events/ical/

However, the ical document returned is invalid (Tested using: http://icalvalid.cloudapp.net/). It appears that this is due to the ics.php file is decorating the feed with the site header and footer including the google analytics script block.

bignose, if you have any clues let me know. There may be some php editing required.