Title: Insert onclick attribute
Last modified: April 18, 2018

---

# Insert onclick attribute

 *  Resolved [r1nk](https://wordpress.org/support/users/r1nk/)
 * (@r1nk)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/insert-onclick-attribute/)
 * Hello, may I need to insert an onclick attribute inside the submit button tag.
   May I know how to insert it?
 * [http://i63.tinypic.com/103evd0.jpg](http://i63.tinypic.com/103evd0.jpg)
 * This is the code that I need to insert
 * `onclick="return gtag_report_conversion(‘http://example.com/your-link')"`
    -  This topic was modified 8 years, 1 month ago by [r1nk](https://wordpress.org/support/users/r1nk/).

Viewing 1 replies (of 1 total)

 *  [Jess Quig](https://wordpress.org/support/users/jquigam/)
 * (@jquigam)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/insert-onclick-attribute/#post-10198717)
 * Hi r1nk,
 * I apologize for any inconvenience, however the submit button markup cannot be
   modified so onclick events can’t be added directly to the submit button.
 * Based on that code, it looks like you may be looking to track Google AdWords 
   conversions. If that’s correct, [we have a tutorial that shares details on how you can accomplish that](https://wpforms.com/how-to-track-form-submissions-as-google-adwords-conversions/)(
   you could try skipping to Step 4, which sounds like what you’d need).
 * I hope that tutorial is helpful! 🙂

Viewing 1 replies (of 1 total)

The topic ‘Insert onclick attribute’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [onclick](https://wordpress.org/support/topic-tag/onclick/)
 * [submit](https://wordpress.org/support/topic-tag/submit/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jess Quig](https://wordpress.org/support/users/jquigam/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/insert-onclick-attribute/#post-10198717)
 * Status: resolved