How to get stats for audio?

I have an audio player (javascript based) on several webpages that plays MP3 files from my web server.  Is there some way to track clicks that starts the audio?  

If it can't be done from my web server, is there some service available that I can upload the MP3s to and track them?  I'd like to continue using the audio player on my site and reference any MP3s files remotely.
brettrAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
shalomcConnect With a Mentor CTOCommented:
godaddy for example.

you don't have to move your domain over to godaddy, and you don't have to use their DNS.

you just have to create a subdomain in the hosting control panel, for example music.yourdomain.com to be used for the images.

Then, you upload your files to the web server using ftp or sftp, and point the javascript to music.yourdomain.com.

the javascript files will have to also be hosted due to cross domain issues.

The control panel has an option to show log analysis.
http://support.godaddy.com/help/article/92/accessing-statistics-for-your-website

If you are using google analytics, you will have to manually correlate the mp3 clicks with your GA data.
0
 
David Johnson, CD, MVPConnect With a Mentor OwnerCommented:
your iis logs will show when any of these files are opened. (requires a lot of filtering)
0
 
shalomcCTOCommented:
If your mp3 files are served from the web server, then any request, regardless of the involved technology, will be logged in the standard web server log.

Are you saying that you have a log and the mp3 files' requests are not there?
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
Ray PaseurCommented:
Have you considered Google Analytics?
0
 
brettrAuthor Commented:
I'm not sure how to do that with IIS logs but would rather avoid them.

How is it done with Google Analytics?
0
 
shalomcCTOCommented:
GA is not going to help you here.
GA injects a piece of javascript code that tracks your page, but afaik it cannot track an AJAX page subcomponent like an embedded mp3 player. The player does its own IO with the web server and GA is helpless.
So, IIS logs are your only rescue. This is not as bad as it sounds.

You can direct the IIS logs into a SQL database.
You can also apply logging selectively only to the /mp3 folder.

Another benefit from dealing with IIS logs is that GA does not track automated access to your web site. Search engines, bots, downloaders, malicious attacks etc are NOT tracked with GA.
0
 
brettrAuthor Commented:
Thanks.

Are there any services such as Amazon's S3 that can track clicks against MP3s?
0
 
shalomcCTOCommented:
any $5/month hosting plan will do.
Most come with built-in log analysis tools.
0
 
brettrAuthor Commented:
Can give an example?
0
 
brettrAuthor Commented:
Thanks.  My hosting service does have Awstats.  I just need to enable logging and give it a little time to accumulate.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.