If you check the different reports on the GA website you will notice that they use, Visits, Visitors, Pageviews, and unique Pageviews. They are all tracked differently, depending on what you are trying to show its best to know the difference between them.
You can read all about it on here
Visits vs. Visitors
Analytics measures both visits and visitors in your account. Visits represent the number of individual sessions
initiated by all the visitors
to your site. If a user is inactive on your site for 30 minutes or more, any future activity is attributed to a new session
. Users that leave your site and return within 30 minutes are counted as part of the original session
.
The initial session by a user during any given date range is considered to be an additional visit
and an additional visitor
. Any future sessions from the same user during the selected time period are counted as additional visits
, but not as additional visitors
.
Pageviews vs. Unique Pageviews
A pageview is defined as a view of a page
on your site that is being tracked by the Analytics tracking code. If a visitor clicks reload
after reaching the page, this is counted as an additional pageview
. If a user navigates
to a different page and then returns to the original
page, a second pageview
is recorded as well.
A unique pageview, as seen in the Content Overview report, aggregates pageviews that are generated by the same user during the same session
. A unique pageview represents the number of sessions during which that page was viewed one or more times.
Google Analytics getTotalsForAllResults inconsistent for different dimensions