How to flag a page when viewed?

I have Drupal 8 and Flag module.

I created a flag on the user. How to flag the user’s account page when I visit it?