• Resolved streamworksaudio

    (@streamworksaudio)


    Hi,

    I am just wondering if there is way to add some JS to a Adv Button? I was hoping to push something to the Google Tag manager data layer when the user clicks on a button.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter streamworksaudio

    (@streamworksaudio)

    I was able to do this by adding an ID to the button (a tag) then using a code snippet to add <script> (with the wp_footer hook) which listens for the click on the ID and then pushes to the datalayer.

    Plugin Support karlalevelup

    (@karlalevelup)

    Hi there!

    Glad to know that you already have a workaround. While there is no built-in option to do this, I added a vote on your behalf to this existing feature request: Advanced Button – add on click function

    Let me know if I can assist you further with this.

    Plugin Support karlalevelup

    (@karlalevelup)

    Hi there!

    It’s been a while since we’ve heard from you. I’ll go ahead and mark this as resolved.

    Should you need our help again, you may submit a new topic.

    Have a great day ahead!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.