Title: [Plugin: Audio Player] Google Analytics Integration?
Last modified: August 19, 2016

---

# [Plugin: Audio Player] Google Analytics Integration?

 *  [finalrune](https://wordpress.org/support/users/finalrune/)
 * (@finalrune)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-audio-player-google-analytics-integration/)
 * I had an idea for very easy addition of stats to this plugin. For those of us
   using Google Analytics, just add a track pageview instance in the embed, i.e.
   onClick=”javascript: pageTracker._trackPageview(‘/audio-download’);”
 * For more customization, allow us to change how the link will appear in Google
   Analytics so that it can be unique for each piece of media, e.g.
 * [audio:[http://www.mydomain/mp3/episode2.mp3;google:episode2-download%5D](http://www.mydomain/mp3/episode2.mp3;google:episode2-download%5D)
 * would create:
 * onClick=”javascript: pageTracker._trackPageview(‘/episode2-download’);”
 * I feel like this is an easy fix but I’m not a PHP programmer 😛
 * Adding this would eliminate the need for me to look into a separate plugin or
   service to track downloads of my files through the front-end

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [doryphores](https://wordpress.org/support/users/doryphores/)
 * (@doryphores)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-audio-player-google-analytics-integration/#post-1339158)
 * I am working on a solution. The hard thing is to come up with a flexible solution
   for everybody. I have taken note of your suggestion and will see if it’s feasible.
 * Martin
 *  [web_fuzzi](https://wordpress.org/support/users/web_fuzzi/)
 * (@web_fuzzi)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-audio-player-google-analytics-integration/#post-1339246)
 * hi guys,
 * i’m interested in this theme!
 * where can i place a function_name(‘value1’, ‘value2’);
    in the audio-player.js,
   so that runs this function on play by user?
 * thanks
    helmut
 *  [grapepress](https://wordpress.org/support/users/grapepress/)
 * (@grapepress)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-audio-player-google-analytics-integration/#post-1339248)
 * I too am interested in using Google Analytics to see what audio files people 
   are actually listening to on my site. My preference would be for tying into GA
   events, and not making fake pageviews. This is exactly what events are for.
 * Does anyone know if the flash player has any event handles built into it (play,
   stop, etc.)? I’m pretty good with javascript, but have no experience with flash.
 * 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Audio Player] Google Analytics Integration?’ is closed to new
replies.

 * 3 replies
 * 4 participants
 * Last reply from: [grapepress](https://wordpress.org/support/users/grapepress/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-audio-player-google-analytics-integration/#post-1339248)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
