Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to get stats for audio?

Posted on 2013-01-13
10
Medium Priority
?
362 Views
Last Modified: 2013-11-19
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.
0
Comment
Question by:brettr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 83

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 400 total points
ID: 38773992
your iis logs will show when any of these files are opened. (requires a lot of filtering)
0
 
LVL 33

Expert Comment

by:shalomc
ID: 38774001
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
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 38774064
Have you considered Google Analytics?
0
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 

Author Comment

by:brettr
ID: 38774640
I'm not sure how to do that with IIS logs but would rather avoid them.

How is it done with Google Analytics?
0
 
LVL 33

Expert Comment

by:shalomc
ID: 38778197
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
 

Author Comment

by:brettr
ID: 38778882
Thanks.

Are there any services such as Amazon's S3 that can track clicks against MP3s?
0
 
LVL 33

Expert Comment

by:shalomc
ID: 38779015
any $5/month hosting plan will do.
Most come with built-in log analysis tools.
0
 

Author Comment

by:brettr
ID: 38779048
Can give an example?
0
 
LVL 33

Accepted Solution

by:
shalomc earned 1600 total points
ID: 38780133
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
 

Author Comment

by:brettr
ID: 38781056
Thanks.  My hosting service does have Awstats.  I just need to enable logging and give it a little time to accumulate.
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you know what to look for when considering cloud computing? Should you hire someone or try to do it yourself? I'll be covering these questions and looking at the best options for you and your business.
You deserve ‘straight talk’ from your cloud provider about your risk, your costs, security, uptime and the processes that are in place to protect your mission-critical applications.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question