Support » Plugin: Clicky by Yoast » How to add clicky_custom.visitor code to the plugin default code?

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

    (@frankapicella)

    Bump. I would really like to figure this out as well. I don’t know how to integrate this properly:

    $user_info = get_userdata(1);

    $a = array();
    $a[‘type’] = “custom”;
    $a[‘custom’][‘username’] = $user_info->user_login;
    $a[‘custom’][’email’] = $user_info->user_email;

    frankapicella

    (@frankapicella)

    I’m not very good at PHP but I’m trying to implement this to track users if someone can help:

    /**
    * @param int $user_ID
    *
    */
    function clicky_track_user( $user_ID ) {

    $user_ID = get_current_user_id();
    $user_info = get_userdata(1);

    clicky_log(
    $a = array();
    $a[‘type’] = “custom”;
    $a[‘custom’][‘username’] = $user_info->user_login;
    $a[‘custom’][’email’] = $user_info->user_email;
    );
    }

    add_action( ‘wp_login’, ‘clicky_track_user’, 10, 2);

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add clicky_custom.visitor code to the plugin default code?’ is closed to new replies.