shortcode – i want to show a modal when user lands on home page very first time

what i want is when user lands on home page for very 1st time i want to show a specific modal. i managed to record the first login of user but what i cant get is how to track user first time landing on home page, below the code of tracking user first time login:

  add_action( 'wp_login', 'track_user_logins', 10, 2 );
   function track_user_logins( $user_login, $user ){
    if( $login_amount = get_user_meta( $user->id, 'login_amount', true ) ){
    update_user_meta( $user->id, 'login_amount', 0 );
     } else {
    // First Login, set it to 1
    update_user_meta( $user->id, 'login_amount', 1 );
    }
    }