Support » Plugin: Music Player for WooCommerce » Google Analytics and GTM

  • Resolved dabcar

    (@dabcar)


    Hi,

    Really appreciate the player (and given five stars)!

    I want to track the each time a track is played in Google Analytics but using GTM. I am currently using your supplied GA UI field, but I would prefer to use GTM. How do I get hold of the parameters you have used to bring that information into GA?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @dabcar

    Our plugin generates a new event in Google Analytics for every play action. The parameters passed to Google Analytics are:

    Event Category: Music Player for WooCommerce
    Event Action: play
    Event Label: The URL to the audio file
    Event Value: The id of the WooCommerce product where the player is inserted

    Best regards.

    Thread Starter dabcar

    (@dabcar)

    Thanks for the reply. I just can’t seem to pick up an ID or click event for a click trigger in GTM. Nothing seems to work including any html ID using Regex. Can you suggest an event trigger, please?

    Thanks

    Plugin Author codepeople

    (@codepeople)

    Hello @dabcar

    In the current version of the plugin, the events are sent directly to Google Analytics using the Google Analytics Scripts, and not through Google Tags Manager as intermediary.

    Please, watch the following video, I’ve enabled the feature in the online demo:

    https://wordpress.dwbooster.com/customdownloads/2020/05/09/video.mp4

    Best regards.

    Thread Starter dabcar

    (@dabcar)

    Thanks for the reply.

    Yes, I could see it working in GA from our site. My concern was having to have both GA and GTM snippets working on the site, but your script doesn’t seem to require it, so it seems to work without any problems.

    Thanks again.

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