Title: Insert JavaScript into confirmation
Last modified: June 26, 2019

---

# Insert JavaScript into confirmation

 *  [lefimatik](https://wordpress.org/support/users/lefimatik/)
 * (@lefimatik)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/insert-javascript-into-confirmation/)
 * I want to embed the following code in the confirmation field:
    <script type=’
   text/javascript’ src=’[https://click.example.io/pixels/example3-7862.js?ent=246′></script&gt](https://click.example.io/pixels/example3-7862.js?ent=246′></script&gt);
 * The code will be removed every time the page is updated. How to insert this code
   correctly?

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

 *  Plugin Author [BlueGlass](https://wordpress.org/support/users/blueglassinteractive/)
 * (@blueglassinteractive)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/insert-javascript-into-confirmation/#post-11765565)
 * Hi [@lefimatik](https://wordpress.org/support/users/lefimatik/)
 * This is a wrong way to add tracking.
 * In the latest plugin version we added custom JavaScript events “application_success”
   and “application_error”. You can use them to add tracking code to success or 
   error submitions.
 * for example:
 *     ```
       $(document).on('application_success', function(){
          // Your tracking javascript code goes here and fired on succesful application submition
       });
       ```
   
 *  Plugin Contributor [Christian Foellmann](https://wordpress.org/support/users/cfoellmann/)
 * (@cfoellmann)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/insert-javascript-into-confirmation/#post-11805328)
 * [@lefimatik](https://wordpress.org/support/users/lefimatik/) did this work for
   your`?

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

The topic ‘Insert JavaScript into confirmation’ is closed to new replies.

 * ![](https://ps.w.org/job-postings/assets/icon-256x256.jpg?rev=1702382)
 * [Job Postings](https://wordpress.org/plugins/job-postings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/job-postings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/job-postings/)
 * [Active Topics](https://wordpress.org/support/plugin/job-postings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/job-postings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/job-postings/reviews/)

## Tags

 * [confirmation](https://wordpress.org/support/topic-tag/confirmation/)

 * 2 replies
 * 3 participants
 * Last reply from: [Christian Foellmann](https://wordpress.org/support/users/cfoellmann/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/insert-javascript-into-confirmation/#post-11805328)
 * Status: not a support question