Trying to add a triger function to buttons for my GOOGLE ADS conversion action to my website.

This topic has 2 replies, 2 voices, and was last updated 9 months, 1 weeks ago ago by Luca Rossi

  • Avatar: chilly
    chilly
    Participant
    March 12, 2024 at 16:42

    I hope this message finds you well.

    I am currently in the process of integrating a Google Ads conversion action into my website, and I could use your expertise to ensure its successful implementation. I have attached an image for reference. [check image attached]

    The main challenge I am facing is the need to incorporate an “OnClick” function or a similar mechanism that triggers the gtag_report_conversion function whenever a user interacts with the “Add to Basket” or “Add to Cart” buttons on my website. This functionality is crucial for the conversion action to be accurately tracked.

    Could you please provide guidance on how I can seamlessly add the necessary “OnClick” [or any other function that will do the job] function to all relevant “ADD TO CARD AND ADD TO BASKET” buttons across my website? Any assistance or insights you can offer would be greatly appreciated.

    Files is visible for topic creator and
    support staff only.
    1 Answer
    Avatar: Justin
    Luca Rossi
    Support staff
    March 13, 2024 at 14:14

    Dear @chilly,

    We hope this message finds you well.

    Please be advised that the customization code you have inquired about falls beyond the purview of our standard support services. However, we would like to direct your attention to a resource that may prove helpful in addressing your query. You can find relevant information in the following article: https://stackoverflow.com/questions/71174756/cannot-add-google-ads-event-to-woocoommerce-add-to-cart-hook

    We trust this will be of assistance to you.

    Warm regards,
    The 8Theme Team

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.