• Hi,

    I’ve installed several WP audioplayer on my website, it works fine.
    I use Google Analytics, but it doesn’t show me on which player the people clicks ?
    WP audioplayer is a flash based application.
    So, how can I put some code / Javascript to tell GAnalytics -> if someone clicks on Player1 count it.
    Inside the flash app. or the HTML page generated by WP or the css ?
    If you have just an idea, then I can find the way to do it (I know flash, html and css well, but not Javascript).

    My english is not so good, I’m sorry I’m french.

    Hope I get some answer. I know that if this problem is solved it can be useful for more than just me.

    Thanks a lot
    Greetings from France

Viewing 4 replies - 1 through 4 (of 4 total)
  • Maybe this will help?
    Comment puis-je effectuer le suivi d’événements Flash ?
    (It also contains code you can use in the Flash movie.)

    Thread Starter dias67

    (@dias67)

    Hi Funkphenomenon,

    Thank you for your quick answer.
    Of course this could work like a charm if I had the .fla file (the native flash movie document).
    But WP audioplayer is a compiled file .swf, so I can’t use Flash Action Script to achieve my purpose.
    There is only a php file…audio-player.php with all the variables sent to flash.

    But I will check if there is a possibility to add an “event listener” on Google Analytics, so that “on click” it will count the numbers of click. This generally works with image click, so it “might” work with a movie too…if so I will come back to tell you how I’ve done it.
    If you have other directions, feel free to tell me !

    Thank you

    Thread Starter dias67

    (@dias67)

    I’ve tried with this solution, but it’s not clear…
    https://www.ads-software.com/support/topic/287677?replies=12#post-1514743

    Here is my code:

    a href=”#” onClick=”pageTracker._trackEvent(‘Outgoinglinks’, ‘ExitClick’, ‘mytrack1’);”
    [audio:https://mywebsite/mytrack1.mp3%5D
    /a

    Something happen with GA, but on Safari I get the: “you haven’t installed the Javascript”, and I use it on my website for another application…and it works…so I don’t know where the problem is ?

    I’ve written a blog howto on accomplishing this, but my technique requires editing the plugin’s javascript file (audioplayer.js), so it kind of locks out auto update on this plugin.

    Adding Google Analytics to “Wordpress AudioPlayer”

    It would be a great feature to have in the core.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP Audioplayer and Google Analytics ?’ is closed to new replies.