Sessions vs entrance ?

Hi,

We have a bit of confusion over terms when using

analytics/v2/reports/blog-posts/daily?start=20200101&end=20200131&limit=1000&f={blog-id}

Does the value of the entrance represent session?

Hi @banstola

To confirm, entrances is defined by HubSpot as the following:

Entrances: the number of times that a page was the first one viewed in a session.

So as an example, if I am to use the following query:

Get a summary of the top 10 blog posts by entrances (the page was the first page viewed in a session):
https://api.hubapi.com/analytics/v2/reports/blog-posts/total?hapikey=demo&start=20180101&end=20180301&sort=entrances&limit=10

This yields the following response:

Example Response:
{
 "offset": 3,
 "total": 11,
 "totals": {
 "rawViews": 258,
 "ctaViews": 2,
 "submissions": 4,
 "leads": 4,
 "contacts": 4,
 "entrances": 19,
 "exits": 19,
 "timePerPageview": 43.751937984496124,
 "pageBounceRate": 0.3684210526315789,
 "exitsPerPageview": 0.07364341085271318
 }

We’re going to see that in the data returned for these top 10 blog posts, there are 19 occaisions where they are the first post viewed in a session during this timeframe.

I hope this helps!

Hi @Willson ,

Thank you for your answer. It helps to clear things up a little bit more. I am sorry if I was not entirely clear. I am talking about the following endpoint when we are querying for data daily. For example, when calling the following endpoint.

analytics/v2/reports/blog-posts/daily?start=20191201&end=20191231&limit=1000&f={filter}

Response is

{
    "2019-12-18": [
        {
            "breakdown": "{placeholder}",
            "contactsPerPageview": 0.0625,
            "exitsPerPageview": 0.1875,
            "rawViews": 16,
            "pageTime": 1265,
            "standardViews": 16,
            "opportunities": 1,
            "pageBounceRate": 0.5,
            "exits": 3,
            "submissionsPerPageview": 0.125,
            "pageviewsMinusExits": 13,
            "submissions": 2,
            "pageBounces": 1,
            "timePerPageview": 97.3076923076923,
            "entrances": 2,
            "contacts": 1
        }
    ],
}

How was the page bounce rate of 0.5 calculated as we see in the response? Is the formula pageBounces/entrances = pageBounceRate correct in this context?

Hi @banstola

The pageBounce rate is actually defined as the following:

The number of sessions with only one page view divided by the total number of sessions

The numbers returned in the request you’re making are not actually the numbers being used to calculate this value you’re seeing, instead this is calculated internally and then outputted as a result for this endpoint.

I hope this helps!

I tested with various date range and I was able to verify that Bounce Rate that users see at dashboard is actually the percentage of pageBounces / entrance from API ?