• It would be fantastic if the default audio player that appears when you paste an audio url into your player could have a css class applied to the play button. This would allow clicks on the play button to be tracked.

    At present there is no way to identify clicks on the play button as they aren’t distinguishable from other kinds of clicks. I would like to be able to create a funnel in Google Analytics and use an audio play as the goal and this isn’t possible without some way to identify clicks on the play button and a css class would make this possible.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    You can target the Play button with the following CSS class:

    .wp-audio-shortcode .mejs-controls .mejs-play button

    I could for example change the background color of the Play button with that class:
    http://i.wpne.ws/bnaP

    Thread Starter jjbbrr

    (@jjbbrr)

    That’s great thanks and I can get it to work in the way that you do but it doesn’t seem to be enough for Google Tag Manager to be able to identify the click. Maybe I need to follow it up on a Tag Manager forum.

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

The topic ‘Default audio player needs css class applied to play button’ is closed to new replies.