0

I'm tracking events on my site such as login & registration and need to send an AJAX post when these events occur.

I've explored ways to do this from the frontend, but have determined that the only accurate way would be to tie the event directly the a hook.

Extra points: I need to include a value from a javascript object unique to each user (or guest).

Any creative ideas?

3
  • Have you looked into the wp_ajax hooks?
    – Welcher
    May 18, 2015 at 23:18
  • @Welcher - Doesn't that work the opposite way? Having an event detected by JS, and then sending that to the WP backend.
    – jetlej
    May 19, 2015 at 23:15
  • I think I misunderstood - you're wanting to trigger an ajax call from another action?
    – Welcher
    May 20, 2015 at 13:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.