Title: Execute javascript after registration
Last modified: August 22, 2016

---

# Execute javascript after registration

 *  Resolved [riccardo.lo](https://wordpress.org/support/users/riccardolo/)
 * (@riccardolo)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/execute-javascript-after-registration/)
 * Hi support,
    i’m using the pro version of the plugin and i have a particular 
   need using this plugin, i need to log with analytics user registrations, so i
   have to fire a js event if an user is registered with this plugin.
 * Is this possible? Of course i don’t have to log user already registered that 
   uses the plugin to login.
 * Thank you
    Riccardo
 * [https://wordpress.org/plugins/wp-fb-autoconnect/](https://wordpress.org/plugins/wp-fb-autoconnect/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [JK](https://wordpress.org/support/users/justin_k/)
 * (@justin_k)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/execute-javascript-after-registration/#post-5282201)
 * At the time the javascript callback is fired it doesn’t yet know if it’s a new
   user or returning; that only happens once it’s running the PHP backend (_process_login.
   php). The hooks & filters this plugin calls during login are all listed on the
   documentation page ([http://www.justin-klein.com/projects/wp-fb-autoconnect/#support](http://www.justin-klein.com/projects/wp-fb-autoconnect/#support)).
   You might be able to do something clever with WP’s ajax api in wpfb_insert_user
   or similar, but I’m not really sure. Either way it would obviously require custom
   development & a fair bit of experimentation, & is quite outside the scope of 
   normal plugin support…

Viewing 1 replies (of 1 total)

The topic ‘Execute javascript after registration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-fb-autoconnect.svg)
 * [WP Social AutoConnect](https://wordpress.org/plugins/wp-fb-autoconnect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fb-autoconnect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fb-autoconnect/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fb-autoconnect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fb-autoconnect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fb-autoconnect/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [JK](https://wordpress.org/support/users/justin_k/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/execute-javascript-after-registration/#post-5282201)
 * Status: resolved