• Resolved Anonymous User 15217539

    (@anonymized-15217539)


    Hello,

    Thanks for the great plugin! It does the job perfectly. Unfortunately, it doesn’t work on audio playlists.

    I took a quick look at the js code (I don’t know javascript however) and it references ‘.wp-audio-shortcode’ – I’ve noticed that playlists don’t include this class in the HTML. Perhaps this is why?

    Is there anything that I can do to fix this?

    Thanks,

    Rob

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am also interested in playlist fix.

    I thought adding

            $('.wp-audio-playlist').bind('play', function (e) {
    
                var fileurl = '';
                var href = $(this).find('a').attr('href');
    
                if( typeof href !== 'undefined' ) {
                    fileurl = href;
                }
    
                gaEvent('wp-audio-playlist', 'play', fileurl)
            });
    
            $('.wp-audio-playlist').bind('pause', function (e) {
    
                var fileurl = '';
                var href = $(this).find('a').attr('href');
    
                if( typeof href !== 'undefined' ) {
                    fileurl = href;
                }
    
                gaEvent('wp-audio-playlist', 'pause', fileurl)
            });
    
            $('.wp-audio-playlist').bind('ended', function (e) {
    
                var fileurl = '';
                var href = $(this).find('a').attr('href');
    
                if( typeof href !== 'undefined' ) {
                    fileurl = href;
                }
    
                gaEvent('wp-audio-playlist', 'ended', fileurl)
            });

    to jquery.me-ga-events.js would be enough, but so far it is nto working. Any advice how to implement this ?

    Plugin Author Marc Toensing

    (@marcdk)

    This plugin now supports playlist since version 1.4

    Thanks for the info Marc. It really works great. Great work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Playlists’ is closed to new replies.