Imported from the Apple Support Forums via the Wayback Machine 🔗
I'm creating a podcast at the moment. In order to keep track of the number of downloads of each episode, I made a script which stores the amount of dl's in a Database. Since iTunes only accepts entries with an mp3 extention, or at least not with php, like http://example.com/podcast/tracker.php?file=episode1.mp3, I thought i'd use redirects:
Imported from the Apple Support Forums via the Wayback Machine 🔗
Not sure but here is a little tidbit from the iTunes podcast spec:
Tracking Usage
Please note that iTunes does not provide usage statistics, because we do not host feeds or episodes. Some podcasters have created mechanisms for tracking the number of times that each episode has been downloaded. iTunes does not provide support in how to track downloads, but the following notes may be helpful:
* 302s will be followed to a depth of 5 redirects and will not update the feed URL in the directory. * The URL before the GET-style form values (before the first ?) must end in a media file extension (e.g. mp3). To work around this, the feed provider can alter their URL from this: http://www.podcaster.com/load.php?f=&Wipeout.php to this: http://www.podcaster.com/load.mp3?f=&Wipeout.mp3 Notice how it says load.mp3 instead of load.php. It should be possible to accomplish this via various means, such as web server rewrites. iTunes looks at the extension of the path part of the url, i.e. the part before the"?".
Erik
0
Apple Support Community member·
Imported from the Apple Support Forums via the Wayback Machine 🔗
If you didn't want to do this work for yourself, you could sign up for free tracking at Podtrac.com. They use a similar redirect to measure downloads of audio files as you're trying to implement.
But if you'd like the challenge, I suggest that you do similar to what podtrac does: use the URL of the type http://example.com/podcast/tracker.mp3?file=episode1.mp3 and an apache rewrite to point tracker.mp3 to tracker.php.