Title: Google Ads Help
Last modified: December 9, 2022

---

# Google Ads Help

 *  Resolved [Karol](https://wordpress.org/support/users/somrafka/)
 * (@somrafka)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/google-ads-help/)
 * Hello, first of all I would like to say that the plugin is really good, the only
   thing I would need help with is to get the data to google ads conversions when
   the user clicks the button.

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

 *  [Spencer Finnell](https://wordpress.org/support/users/spencerfinnell/)
 * (@spencerfinnell)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/google-ads-help/#post-16281769)
 * Hello [@somrafka](https://wordpress.org/support/users/somrafka/), I’m so glad
   you are enjoying the plugin.
 * To track conversions you could attach a click event to the payment button in 
   JavaScript, and execute your tracking code:
 *     ```
       <script>
       jQuery( '.simpay-payment-btn' ).on( 'click', function() {
         // track
       } );
       </script>
       ```
   
 * However, a Stripe Checkout session can be abandoned so at that point it has not
   necessarily converted. Instead, there is a PHP hook that runs one time when the
   payment confirmation is viewed:
 *     ```
       <?php
       add_action(
         'simpay_payment_receipt_viewed',
         function( $payment_confirmation_data ) {
           // Track.
         }
       );
       ```
   
 * I hope that helps! Please let me know if you have any further questions.
    -  This reply was modified 3 years, 4 months ago by [Spencer Finnell](https://wordpress.org/support/users/spencerfinnell/).
 *  [Spencer Finnell](https://wordpress.org/support/users/spencerfinnell/)
 * (@spencerfinnell)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/google-ads-help/#post-16286759)
 * Hello [@somrafka](https://wordpress.org/support/users/somrafka/),
 * Since we haven’t heard back from you, I am going to close this ticket.
 * Please do follow up again if needed.

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

The topic ‘Google Ads Help’ is closed to new replies.

 * ![](https://ps.w.org/stripe/assets/icon-256x256.png?rev=2784844)
 * [Stripe Payment Forms by WP Simple Pay - Accept Credit Card Payments + Subscriptions with Stripe](https://wordpress.org/plugins/stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stripe/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Spencer Finnell](https://wordpress.org/support/users/spencerfinnell/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/google-ads-help/#post-16286759)
 * Status: resolved