{"id":120623,"date":"2022-04-14T15:23:51","date_gmt":"2022-04-14T06:23:51","guid":{"rendered":"https:\/\/support.questetra.com\/?p=120623"},"modified":"2023-08-18T14:31:17","modified_gmt":"2023-08-18T05:31:17","slug":"google-analytics-ga4report-pageviews-by-hostname-pagepath-2022","status":"publish","type":"post","link":"https:\/\/support.questetra.com\/en\/addons\/google-analytics-ga4report-pageviews-by-hostname-pagepath-2022\/","title":{"rendered":"Google Analytics #GA4_Report: PageViews by Hostname-PagePath"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><div class=\"su-box su-box-style-default\" id=\"\" style=\"border-color:#003e04;border-radius:0px;max-width:none\"><div class=\"su-box-title\" style=\"background-color:#267137;color:#ffffff;border-top-left-radius:0px;border-top-right-radius:0px\">Google Analytics: GA4 Report, PageViews by Hostname-PagePath<\/div><div class=\"su-box-content su-u-clearfix su-u-trim\" style=\"border-bottom-left-radius:0px;border-bottom-right-radius:0px\"> Reports the page popularity in the specified period in ranking format. The number of screen page views, sessions, engaged sessions and active users for each page are aggregated in TSV format. Dimension Filter &#8220;inListFilter&#8221; is also available.<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1\" data-anchor=\"configs\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Configs<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<ul class=\"fa-ul\">\n<li>U: Select HTTP_Authz Setting<span style=\"color:#990000;\"> *<\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> A1: Set Property-ID in Google Analytics<span style=\"color:#990000;\"> *<\/span><span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B1: Set StartDate of DateRange (Default #yesterday)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B2: Set EndDate of DateRange (Default #today)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B3: To filter, Set Name of Filter Dimension (eg &#8220;country&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> B4: To filter, Set Match List in CSV (eg. &#8220;Japan,United States&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li> C1: Select NUM that stores Total of screenPageViews (update)<\/li>\n<li> C2: Select NUM that stores Total of sessions (update)<\/li>\n<li> C3: Select NUM that stores Total of engagedSessions (update)<\/li>\n<li> C4: Select NUM that stores Total of activeUsers (update)<\/li>\n<li><span class=\"fa-li\"><i class=\"far fa-pen-square fa-lg\"><\/i><\/span> D1: Set Number of Ranking Size (Default &#8220;20&#8221;)<span style=\"color:#000099;\"><sup style=\"font-style:italic;\">#{EL}<\/sup><\/span><\/li>\n<li> D2: Select STRING that stores Ranking TSV (update)<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n<div class=\"su-spoiler su-spoiler-style-modern-light su-spoiler-icon-plus-square-1 su-spoiler-closed\" data-anchor=\"script\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Script (click to open)<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ GraalJS Script (engine type: 2)\n\n\/\/\/\/\/\/\/\/ START &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\nmain();\nfunction main(){ \n\n\/\/\/\/\/\/ == Config Retrieving \/ \u5de5\u7a0b\u30b3\u30f3\u30d5\u30a3\u30b0\u306e\u53c2\u7167 ==\nconst strAuthzSetting     = configs.get      ( &quot;AuthzConfU&quot; );   \/\/\/ REQUIRED\n  engine.log( &quot; AutomatedTask Config: Authz Setting: &quot; + strAuthzSetting );\nconst strPropertyId       = configs.get      ( &quot;StrConfA1&quot; );    \/\/\/ REQUIRED\n  if( strPropertyId     === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ConfigError:&quot; +\n                     &quot; Config {A1: PropertyId} must be non-empty \\n&quot; );\n  }\nlet   strStartDate        = configs.get      ( &quot;StrConfB1&quot; );    \/\/ NotRequired\n  if( strStartDate      === &quot;&quot; ){\n      strStartDate        = &quot;yesterday&quot;;\n  }else{\n      strStartDate        = formatToBpmsDateStr( strStartDate );\n  }\nlet   strEndDate          = configs.get      ( &quot;StrConfB2&quot; );    \/\/ NotRequired\n  if( strEndDate        === &quot;&quot; ){\n      strEndDate          = &quot;today&quot;;\n  }else{\n      strEndDate          = formatToBpmsDateStr( strEndDate );\n  }\nlet   strDimFilter        = configs.get      ( &quot;StrConfB3&quot; );    \/\/ NotRequired\nlet   strDimFilterValues  = configs.get      ( &quot;StrConfB4&quot; );    \/\/ NotRequired\n  if( strDimFilter === &quot;&quot; && strDimFilterValues === &quot;&quot; ){\n    engine.log( &quot; AutomatedTask Config:&quot; +\n                &quot; DimensionFilter not applied&quot; );\n  }else if( strDimFilter !== &quot;&quot; && strDimFilterValues !== &quot;&quot; ){\n    engine.log( &quot; AutomatedTask Config:&quot; +\n                &quot; DimensionFilter: &quot; + strDimFilter + &quot; &quot; + strDimFilterValues );\n  }else if( strDimFilter === &quot;&quot; ){\n    engine.log( &quot; AutomatedTask ConfigWarning:&quot; +\n                &quot; DimensionFilter ignored, Config {B3: DimensionName} required&quot; );\n  }else if( strDimFilterValues === &quot;&quot; ){\n    engine.log( &quot; AutomatedTask ConfigWarning:&quot; +\n                &quot; DimensionFilter ignored, Config {B4: MatchList} required&quot; );\n  }else{\n    throw new Error( &quot;\\n AutomatedTask Unexpected Error \\n&quot; );\n  }\nconst numPocketPv         = configs.getObject( &quot;SelectConfC1&quot; ); \/\/ NotRequired\nconst numPocketSs         = configs.getObject( &quot;SelectConfC2&quot; ); \/\/ NotRequired\nconst numPocketEs         = configs.getObject( &quot;SelectConfC3&quot; ); \/\/ NotRequired\nconst numPocketAu         = configs.getObject( &quot;SelectConfC4&quot; ); \/\/ NotRequired\nlet   strRankSize         = configs.get      ( &quot;StrConfD1&quot; );    \/\/ NotRequired\n  if( strRankSize       === &quot;&quot; ){\n      strRankSize         = &quot;20&quot;;\n  }\n  let numRankSize         = strRankSize - 0;\nconst strPocketRankTsv    = configs.getObject( &quot;SelectConfD2&quot; ); \/\/ NotRequired\n\n\n\n\/\/\/\/\/\/ == Data Retrieving \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u306e\u53c2\u7167 ==\n\/\/ (Nothing. Retrieved via Expression Language in Config Retrieving)\n\n\n\n\/\/\/\/\/\/ == Calculating \/ \u6f14\u7b97 ==\n\n\/\/\/ request1, prepare body\n\/\/ Google Analytics &gt; Reporting &gt; Google Analytics Data API (GA4) &gt; runReport\n\/\/ https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\/rest\/v1beta\/properties\/runReport\nlet request1Obj = {};\n    request1Obj.dimensions = [];\n    request1Obj.dimensions[0] = {};\n    request1Obj.dimensions[0].name = &quot;hostName&quot;;\n    request1Obj.dimensions[1] = {};\n    request1Obj.dimensions[1].name = &quot;pagePath&quot;;\n    request1Obj.dimensions[2] = {};\n    request1Obj.dimensions[2].name = &quot;pageTitle&quot;;\n    request1Obj.metrics = [];\n    request1Obj.metrics[0] = {};\n    request1Obj.metrics[0].name = &quot;screenPageViews&quot;;\n    request1Obj.metrics[1] = {};\n    request1Obj.metrics[1].name = &quot;sessions&quot;;\n    request1Obj.metrics[2] = {};\n    request1Obj.metrics[2].name = &quot;engagedSessions&quot;;\n    request1Obj.metrics[3] = {};\n    request1Obj.metrics[3].name = &quot;activeUsers&quot;;\n    request1Obj.dateRanges = [];\n    request1Obj.dateRanges[0] = {};\n    request1Obj.dateRanges[0].startDate = strStartDate;\n    request1Obj.dateRanges[0].endDate   = strEndDate;\n    request1Obj.limit = numRankSize;\n    if( strDimFilter !== &quot;&quot; && strDimFilterValues !== &quot;&quot; ){\n      request1Obj.dimensionFilter = {};\n      request1Obj.dimensionFilter.filter = {};\n      request1Obj.dimensionFilter.filter.fieldName = strDimFilter;\n      request1Obj.dimensionFilter.filter.inListFilter = {};\n      request1Obj.dimensionFilter.filter.inListFilter.caseSensitive = true;\n      request1Obj.dimensionFilter.filter.inListFilter.values =\n                                                      strDimFilterValues.split(&quot;,&quot;);\n    }\n    request1Obj.orderBys = [];\n    request1Obj.orderBys[0] = {};\n    request1Obj.orderBys[0].metric = {};\n    request1Obj.orderBys[0].metric.metricName = &quot;screenPageViews&quot;;\n    request1Obj.orderBys[0].desc = true;\n    request1Obj.orderBys[1] = {};\n    request1Obj.orderBys[1].metric = {};\n    request1Obj.orderBys[1].metric.metricName = &quot;sessions&quot;;\n    request1Obj.orderBys[1].desc = true;\n    request1Obj.orderBys[2] = {};\n    request1Obj.orderBys[2].metric = {};\n    request1Obj.orderBys[2].metric.metricName = &quot;engagedSessions&quot;;\n    request1Obj.orderBys[2].desc = true;\n    request1Obj.orderBys[3] = {};\n    request1Obj.orderBys[3].metric = {};\n    request1Obj.orderBys[3].metric.metricName = &quot;activeUsers&quot;;\n    request1Obj.orderBys[3].desc = true;\n    request1Obj.metricAggregations = [];\n    request1Obj.metricAggregations[0] = &quot;TOTAL&quot;;\n\/*\nengine.log( request1Obj ); \/\/ debug\n{\n  &quot;dimensions&quot;: [\n    {\n      &quot;name&quot;: &quot;hostName&quot;\n    },\n    {\n      &quot;name&quot;: &quot;pagePath&quot;\n    },\n    {\n      &quot;name&quot;: &quot;pageTitle&quot;\n    }\n  ],\n  &quot;metrics&quot;: [\n    {\n      &quot;name&quot;: &quot;screenPageViews&quot;\n    },\n    {\n      &quot;name&quot;: &quot;sessions&quot;\n    },\n    {\n      &quot;name&quot;: &quot;engagedSessions&quot;\n    },\n    {\n      &quot;name&quot;: &quot;activeUsers&quot;\n    }\n  ],\n  &quot;dateRanges&quot;: [\n    {\n      &quot;startDate&quot;: &quot;2022-04-01&quot;,\n      &quot;endDate&quot;: &quot;today&quot;\n    }\n  ],\n  &quot;limit&quot;: 20,\n  &quot;dimensionFilter&quot;: {\n    &quot;filter&quot;: {\n      &quot;fieldName&quot;: &quot;country&quot;,\n      &quot;inListFilter&quot;: {\n        &quot;caseSensitive&quot;: true,\n        &quot;values&quot;: [\n          &quot;Japan&quot;,\n          &quot;United States&quot;\n        ]\n      }\n    }\n  },\n  &quot;orderBys&quot;: [\n    {\n      &quot;metric&quot;: {\n        &quot;metricName&quot;: &quot;screenPageViews&quot;\n      },\n      &quot;desc&quot;: true\n    },\n    {\n      &quot;metric&quot;: {\n        &quot;metricName&quot;: &quot;sessions&quot;\n      },\n      &quot;desc&quot;: true\n    },\n    {\n      &quot;metric&quot;: {\n        &quot;metricName&quot;: &quot;engagedSessions&quot;\n      },\n      &quot;desc&quot;: true\n    },\n    {\n      &quot;metric&quot;: {\n        &quot;metricName&quot;: &quot;activeUsers&quot;\n      },\n      &quot;desc&quot;: true\n    }\n  ],\n  &quot;metricAggregations&quot;: [\n    &quot;TOTAL&quot;\n  ]\n}\n*\/\n\n\/\/\/ request1, prepare header\nlet request1Uri = &quot;https:\/\/analyticsdata.googleapis.com\/v1beta\/properties\/&quot; +\n                  strPropertyId + &quot;:runReport&quot;;\nlet request1    = httpClient.begin(); \/\/ HttpRequestWrapper\n    request1    = request1.authSetting( strAuthzSetting ); \/\/ with &quot;Authorization: Bearer XX&quot;\n    \/\/ https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360024574471-R2300#HttpRequestWrapper\n    request1    = request1.body( JSON.stringify( request1Obj ), &quot;application\/json&quot; );\n\n\/\/\/ request1, try\nconst response1     = request1.post( request1Uri ); \/\/ HttpResponseWrapper\nengine.log( &quot; AutomatedTask ApiRequest1 Start: &quot; + request1Uri );\nconst response1Code = response1.getStatusCode() + &quot;&quot;;\nconst response1Body = response1.getResponseAsString() + &quot;&quot;;\nengine.log( &quot; AutomatedTask ApiResponse Status: &quot; + response1Code );\nif( response1Code !== &quot;200&quot;){\n  throw new Error( &quot;\\n AutomatedTask UnexpectedResponseError: &quot; +\n                    response1Code + &quot;\\n&quot; + response1Body + &quot;\\n&quot; );\n}\n\n\/\/\/ response1, parse\nconst response1Obj = JSON.parse( response1Body );\n\/* \nengine.log( response1Body ); \/\/ debug\n{\n  &quot;dimensionHeaders&quot;: [\n    {\n      &quot;name&quot;: &quot;hostName&quot;\n    },\n    {\n      &quot;name&quot;: &quot;pagePath&quot;\n    },\n    {\n      &quot;name&quot;: &quot;pageTitle&quot;\n    }\n  ],\n  &quot;metricHeaders&quot;: [\n    {\n      &quot;name&quot;: &quot;screenPageViews&quot;,\n      &quot;type&quot;: &quot;TYPE_INTEGER&quot;\n    },\n    {\n      &quot;name&quot;: &quot;sessions&quot;,\n      &quot;type&quot;: &quot;TYPE_INTEGER&quot;\n    },\n    {\n      &quot;name&quot;: &quot;engagedSessions&quot;,\n      &quot;type&quot;: &quot;TYPE_INTEGER&quot;\n    },\n    {\n      &quot;name&quot;: &quot;activeUsers&quot;,\n      &quot;type&quot;: &quot;TYPE_INTEGER&quot;\n    }\n  ],\n  &quot;rows&quot;: [\n    {\n      &quot;dimensionValues&quot;: [\n        {\n          &quot;value&quot;: &quot;example.com&quot;\n        },\n        {\n          &quot;value&quot;: &quot;\/index.html&quot;\n        },\n        {\n          &quot;value&quot;: &quot;Welcome&quot;\n        }\n      ],\n      &quot;metricValues&quot;: [\n        {\n          &quot;value&quot;: &quot;2201&quot;\n        },\n        {\n          &quot;value&quot;: &quot;375&quot;\n        },\n        {\n          &quot;value&quot;: &quot;94&quot;\n        },\n        {\n          &quot;value&quot;: &quot;25&quot;\n        }\n      ]\n    },\n      ...\n    {\n      &quot;dimensionValues&quot;: [\n        ...\n      ],\n      &quot;metricValues&quot;: [\n        ...\n      ]\n    }\n  ],\n  &quot;totals&quot;: [\n    {\n      &quot;dimensionValues&quot;: [\n        {\n          &quot;value&quot;: &quot;RESERVED_TOTAL&quot;\n        },\n        {\n          &quot;value&quot;: &quot;RESERVED_TOTAL&quot;\n        },\n        {\n          &quot;value&quot;: &quot;RESERVED_TOTAL&quot;\n        }\n      ],\n      &quot;metricValues&quot;: [\n        {\n          &quot;value&quot;: &quot;53788&quot;\n        },\n        {\n          &quot;value&quot;: &quot;26212&quot;\n        },\n        {\n          &quot;value&quot;: &quot;3556&quot;\n        },\n        {\n          &quot;value&quot;: &quot;2856&quot;\n        }\n      ]\n    }\n  ],\n  &quot;rowCount&quot;: 3927,\n  &quot;metadata&quot;: {\n    &quot;currencyCode&quot;: &quot;JPY&quot;,\n    &quot;timeZone&quot;: &quot;Asia\/Tokyo&quot;\n  },\n  &quot;kind&quot;: &quot;analyticsData#runReport&quot;\n}\n*\/\n\nlet strRankTsv = &quot;&quot;;\nlet numPv = 0;\nlet numSs = 0;\nlet numEs = 0;\nlet numAu = 0;\n\nif( response1Obj.hasOwnProperty(&quot;rows&quot;) ){\n\n  \/\/\/ Create TSV by rows\n  strRankTsv += &quot;PV&quot; + &quot;\\t&quot; + &quot;SS&quot; + &quot;\\t&quot; + &quot;ES&quot; + &quot;\\t&quot; + &quot;AU&quot; + &quot;\\t&quot; + &quot;URI&quot; + &quot;\\t&quot; + &quot;TITLE&quot; + &quot;\\n&quot;;\n  for( let i = 0; i &lt; response1Obj.rows.length; i++ ){\n    strRankTsv += response1Obj.rows[i].metricValues[0].value + &quot;\\t&quot;;\n    strRankTsv += response1Obj.rows[i].metricValues[1].value + &quot;\\t&quot;;\n    strRankTsv += response1Obj.rows[i].metricValues[2].value + &quot;\\t&quot;;\n    strRankTsv += response1Obj.rows[i].metricValues[3].value + &quot;\\t&quot;;\n    strRankTsv += response1Obj.rows[i].dimensionValues[0].value;\n    strRankTsv += response1Obj.rows[i].dimensionValues[1].value + &quot;\\t&quot;;\n    strRankTsv += response1Obj.rows[i].dimensionValues[2].value;\n    if( i !== response1Obj.rows.length - 1 ){\n      strRankTsv += &quot;\\n&quot;;\n    }\n  }\n\n  \/\/\/ Get TOTAL\n  numPv = response1Obj.totals[0].metricValues[0].value;\n  numSs = response1Obj.totals[0].metricValues[1].value;\n  numEs = response1Obj.totals[0].metricValues[2].value;\n  numAu = response1Obj.totals[0].metricValues[3].value;\n}\n\n\n\n\/\/\/\/\/\/ == Data Updating \/ \u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30c7\u30fc\u30bf\u3078\u306e\u4ee3\u5165 ==\nif( numPocketPv !== null ){\n  engine.setData( numPocketPv, new java.math.BigDecimal( numPv ) );\n}\nif( numPocketSs !== null ){\n  engine.setData( numPocketSs, new java.math.BigDecimal( numSs ) );\n}\nif( numPocketEs !== null ){\n  engine.setData( numPocketEs, new java.math.BigDecimal( numEs ) );\n}\nif( numPocketAu !== null ){\n  engine.setData( numPocketAu, new java.math.BigDecimal( numAu ) );\n}\nif( strPocketRankTsv !== null ){\n  engine.setData( strPocketRankTsv, strRankTsv );\n}\n\n\n} \/\/\/\/\/\/\/\/ END &quot;main()&quot; \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\n\n\nfunction formatToBpmsDateStr( str ) { \/\/ Format from DateStr to &quot;DateStr for Bpms&quot;\n  if( str === &quot;&quot; ){\n    throw new Error( &quot;\\n AutomatedTask ParseDateError:&quot; +\n                     &quot; String is empty \\n&quot; );\n  }\n  var arrNumParts = str.match( \/\\d+\/g );\n  if( arrNumParts === null ){\n    throw new Error( &quot;\\n AutomatedTask ParseDateError:&quot; +\n                     &quot; No numeric characters in: &quot; + str + &quot;\\n&quot; );\n  }\n  if( arrNumParts.length &lt; 3){\n    throw new Error( &quot;\\n AutomatedTask ParseDateError:&quot; +\n                     &quot; 3 Parts of numeric characters are needed in: &quot; + str + &quot;\\n&quot; );\n  }\n  let strNew = arrNumParts[0] + &quot;-&quot; +\n               ( &#39;0&#39; + arrNumParts[1] ).slice(-2) + &quot;-&quot; +\n               ( &#39;0&#39; + arrNumParts[2] ).slice(-2);\n  return strNew;\n}\n\n\n\/*\nNotes:\n- You can automate the extraction work of Google Analytics Data. AnalyticsReports\n    - When the matter reaches this Automated Step, date will be automatically extracted via API.\n    - Extracted via &quot;Google Analytics Data API (GA4)&quot; for GA4 properties.\n        - Data API v1 can only be used to access GA4 properties and is not compatible with Universal Analytics.\n            - As of 202204, it is a &quot;Beta version&quot;, although &quot;no breaking changes are expected&quot;.\n            - https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\n        - Make sure that the property ID to be extracted is `G-XXXXXXXXXX` (GA4 property).\n            - GA4 Properties is the latest version of Google Analytics released in October 2020.\n            - https:\/\/support.google.com\/analytics\/answer\/10089681\n        - If you want to automate the data extraction from the universal analytics (UA) property,\n            - https:\/\/support.questetra.com\/ja\/addons\/google-analytics-reports-pageviews-by-hostname-pagepath-2021\/\n            - The property ID of the UA property is `UA-XXXXXXXX-X`.\n    - Note that the concept of &quot;session&quot; has changed significantly in the UA and GA4 properties.\n        - In GA4, &quot;revisit within 30 minutes&quot; is counted as one session.\n        - The number of sessions in the GA4 property tends to be less than the number of sessions in the UA property.\n        - https:\/\/support.google.com\/analytics\/answer\/9191807?hl=ja\n- The measured value for each page is automatically acquired. There are four indicators (metrics) as follows.\n    - &quot;PageViews&quot; metrics=`screenPageViews`\n    - &quot;Number of sessions&quot; metrics=`sessions`\n    - &quot;Number of engaged sessions&quot; metrics=`engagedSessions`\n        - (Number of sessions that lasted longer than 10 seconds, or had 2 or more screen views )\n        - https:\/\/support.google.com\/analytics\/answer\/11109416\n    - &quot;Number of active users&quot; metrics=`activeUsers`\n    - You can also get the total of each. (Not very significant except for &quot;PageViews&quot;)\n- If any of the following 3 dimensions are different, they will be aggregated as separate pages.\n    - &quot;Hostname&quot; dimensions=`hostName`\n    - &quot;Page path&quot; dimensions=`pagePath`\n    - &quot;Page name&quot; dimensions=`pageTitle`\n- Reference: Dimensions and metrics\n    - &quot;Dimension&quot; is the analysis axis. It is used in expressions such as &quot;aggregate by XX&quot;.\n    - &quot;Metrics&quot; are measured values. (Numerical values\u200byou want to count, time you want to total, etc.)\n    - This Automated Step automatically acquires the &quot;number of pageviews&quot; etc. by each page.\n\nAPPENDIX\n- To place this &quot;Add-on Automated Step&quot; on the design screen of the workflow diagram\n    - Import Addon-XML (definition file of this automated step) to Workflow App in advance.\n    - The system admins can also make it available in all Workflow Apps. (App-shared Add-on)\n    - Manual M415: Adding an Auto-Step to be Used in a Business Process Definition\n        - https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360002247792-M415\n- To activate the Workflow App including this &quot;Add-on automated Step&quot;\n    - Authorize API communications by an authorized user in advance.\n    - Enable &quot;Google Analytics Data API&quot; on the Google Cloud Platform\n        - APIs and Services: `Google Analytics Data API`\n            - https:\/\/console.cloud.google.com\/project\/_\/apis\/library\n        - DOCUMENT https:\/\/cloud.google.com\/service-usage\/docs\/enable-disable\n    - Create an &quot;OAuth2.0 client ID&quot; on the Google Cloud Platform\n        - Creating credentials:\n            - `OAuth Client ID`\n        - Application type:\n            - `Web application`\n        - Name:\n            - `Questetra to GA4`\n        - Authorized JavaScript origins:\n            - `https:\/\/your-subdomain.questetra.net`\n        - Authorized redirect URI:\n            - `https:\/\/s.questetra.net\/oauth2callback`\n        - DOCUMENT https:\/\/cloud.google.com\/endpoints\/docs\/frameworks\/java\/javascript-client\n    - Set &quot;HTTP authentication (OAuth2)&quot; on the Questetra Workflow-App\n        - Name:\n            - `Questetra-GA4`\n        - Authorization Endpoint URL:\n            - `https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&approval_prompt=force`\n        - Token Endpoint URL:\n            - `https:\/\/accounts.google.com\/o\/oauth2\/token`\n        - Scope:\n            - `https:\/\/www.googleapis.com\/auth\/analytics.readonly`\n        - Client ID \/ Consumer Secret:\n            - (see above &quot;OAuth 2.0 client ID&quot;)\n- In this Add-on Automated Step, &quot;Data API (GA4)&quot; is used to acquire data from Google Analytics.\n    - Not &quot;Reporting API V4&quot;.\n    - Not &quot;Core Reporting API V3&quot;.\n    - Requests with a response longer than 30 seconds may result in an error.\n    - Detailed specifications of &quot;Google Analytics Data API (GA4)&quot;\n        - GUIDE: Creating a Report\n            - https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\/basics\n        - REFERENCE: Method: properties.runReport\n            - https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\/rest\/v1beta\/properties\/runReport\n- Can also filter the ranking list by Dimension Filter (inListFilter).\n    - Only data which dimension values\u200bexactly match any of the values will be extracted. (Case Sensitive)\n        - `country`: `Canada,Japan`\n        - `customEvent:locale`: `ja`\n- The dimensions and metrics available in your properties can be listed in &quot;GA4 Dimensions & Metrics Explorer&quot;.\n    - https:\/\/ga-dev-tools.web.app\/ga4\/dimensions-metrics-explorer\/\n    - DOCUMENT https:\/\/support.google.com\/analytics\/answer\/9143382\n- DATE type data or DATETIME type data are also available to specify the date range.\n    - `YYYY-MM-DD`, `YYYY\/MM\/DD`, `YYYY-MM-DD hh:mm` etc\n    - Must be written in the order of Year Month Date with a delimiter.\n\n\nNotes-ja:\n- Google\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9Data\u306e\u62bd\u51fa\u696d\u52d9\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002 AnalyticsReports\n    - \u6848\u4ef6\u304c\u81ea\u52d5\u5de5\u7a0b\u306b\u5230\u9054\u3057\u305f\u969b\u306b\u3001API\u7d4c\u7531\u3067\u81ea\u52d5\u7684\u306b\u62bd\u51fa\u3055\u308c\u307e\u3059\u3002\n    - GA4\u30d7\u30ed\u30d1\u30c6\u30a3\u7528\u306e &quot;Google Analytics Data API (GA4)&quot; \u3092\u7d4c\u7531\u3057\u3066\u62bd\u51fa\u3055\u308c\u307e\u3059\u3002\n        - Data API v1\u306f\u3001GA4\u30d7\u30ed\u30d1\u30c6\u30a3\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306b\u306e\u307f\u4f7f\u7528\u3067\u304d\u3001UniversalAnalytics\u3068\u306f\u4e92\u63db\u6027\u304c\u3042\u308a\u307e\u305b\u3093\u3002\n            - \u307e\u305f\u3001202204\u6642\u70b9\u306b\u304a\u3044\u3066\u3001\u300c\u91cd\u5927\u306a\u5909\u66f4\u306f\u4e88\u60f3\u3055\u308c\u3066\u3044\u306a\u3044\u300d\u3082\u306e\u306e\u3001&quot;Beta version&quot; \u3067\u3059\u3002\n            - https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\n        - \u62bd\u51fa\u5bfe\u8c61\u306e\u30d7\u30ed\u30d1\u30c6\u30a3ID\u304c `G-XXXXXXXXXX`\uff08GA4\u30d7\u30ed\u30d1\u30c6\u30a3\uff09\u3068\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n            - GA4\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u306f\u30012020\u5e7410\u6708\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u6700\u65b0\u7248\u306eGoogle \u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9\u3067\u3059\u3002\n            - https:\/\/support.google.com\/analytics\/answer\/10089681?hl=ja\n        - \u306a\u304a\u3001\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9(UA)\u30d7\u30ed\u30d1\u30c6\u30a3\u304b\u3089\u306eData\u62bd\u51fa\u3092\u81ea\u52d5\u5316\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30b3\u30c1\u30e9\u2193\n            - https:\/\/support.questetra.com\/ja\/addons\/google-analytics-reports-pageviews-by-hostname-pagepath-2021\/\n            - UA\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30d7\u30ed\u30d1\u30c6\u30a3ID\u306f `UA-XXXXXXXX-X` \u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\n    - UA\u30d7\u30ed\u30d1\u30c6\u30a3\u3068GA4\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u306f &quot;\u30bb\u30c3\u30b7\u30e7\u30f3&quot; \u306e\u6982\u5ff5\u304c\u5927\u304d\u304f\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\n        - GA4\u3067\u306f\u300c30\u5206\u4ee5\u5185\u306e\u518d\u8a2a\u300d\u306f\u30011\u3064\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3068\u3057\u3066\u30ab\u30a6\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002\n        - GA4\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u6570\u306f\u3001UA\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u6570\u3088\u308a\u5c11\u306a\u304f\u306a\u308b\u50be\u5411\u306b\u3042\u308a\u307e\u3059\u3002\n        - https:\/\/support.google.com\/analytics\/answer\/9191807?hl=ja\n- \u30da\u30fc\u30b8\u3054\u3068\u306e\u8a08\u6e2c\u5024\u3092\u81ea\u52d5\u53d6\u5f97\u3057\u307e\u3059\u3002\u6307\u6a19\uff08\u30e1\u30c8\u30ea\u30c3\u30af\u30b9\uff09\u306f\u4ee5\u4e0b\u306e4\u3064\u3067\u3059\u3002\n    - &quot;\u8868\u793a\u56de\u6570&quot;\uff08\u65e7 &quot;\u30da\u30fc\u30b8\u30d3\u30e5\u30fc\u6570&quot;\uff09 metrics=`screenPageViews`\n    - &quot;\u30bb\u30c3\u30b7\u30e7\u30f3\u6570&quot; metrics=`sessions`\n    - &quot;\u30a8\u30f3\u30b2\u30fc\u30b8\u30c9\u30bb\u30c3\u30b7\u30e7\u30f3\u6570&quot; metrics=`engagedSessions`\n        - \uff08\u300c10\u79d2\u4ee5\u4e0a\u306e\u95b2\u89a7\u300d\u3084\u300c2\u30da\u30fc\u30b8\u4ee5\u4e0a\u306e\u95b2\u89a7\u300d\u306a\u3069\u304c\u3042\u3063\u305f\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u6570\uff09\n        - https:\/\/support.google.com\/analytics\/answer\/11109416?hl=ja\n    - &quot;\u30a2\u30af\u30c6\u30a3\u30d6\u30e6\u30fc\u30b6\u30fc\u6570&quot; metrics=`activeUsers`\n    - \u305d\u308c\u305e\u308c\u306e\u5ef6\u3079\u5408\u8a08\u3082\u53d6\u5f97\u53ef\u80fd\u3067\u3059\u3002\uff08&quot;\u8868\u793a\u56de\u6570&quot; \u4ee5\u5916\u306f\u3042\u307e\u308a\u6709\u610f\u3067\u306f\u3042\u308a\u307e\u305b\u3093\uff09\n- \u3082\u3057\u3001\u4ee5\u4e0b\u306e3\u30c7\u30a3\u30e1\u30f3\u30b7\u30e7\u30f3\u306e\u3044\u305a\u308c\u304b\u304c\u7570\u306a\u308b\u5834\u5408\u3001\u5225\u306e\u30da\u30fc\u30b8\u3068\u3057\u3066\u96c6\u8a08\u3055\u308c\u307e\u3059\u3002\n    - &quot;\u30db\u30b9\u30c8\u540d&quot; dimensions=`hostName`\n    - &quot;\u30da\u30fc\u30b8\u30d1\u30b9&quot; dimensions=`pagePath`\n    - &quot;\u30da\u30fc\u30b8\u540d&quot; dimensions=`pageTitle`\n- \u53c2\u8003\uff1a\u30c7\u30a3\u30e1\u30f3\u30b7\u30e7\u30f3\u3068\u30e1\u30c8\u30ea\u30c3\u30af\u30b9\n    - \u300e\u30c7\u30a3\u30e1\u30f3\u30b7\u30e7\u30f3\u300f\u3068\u306f &quot;\u5206\u6790\u8ef8&quot; \u306e\u3053\u3068\u3067\u3059\u3002\u300c\u25cb\u25cb\u3054\u3068\u306b\u96c6\u8a08\u300d\u3068\u3044\u3063\u305f\u8868\u73fe\u3067\u5229\u7528\u3055\u308c\u307e\u3059\u3002\n    - \u300e\u30e1\u30c8\u30ea\u30c3\u30af\u30b9\u300f\uff08\u6307\u6a19\uff09\u3068\u306f &quot;\u8a08\u6e2c\u5024&quot; \u306e\u3053\u3068\u3067\u3059\u3002\uff08\u6570\u3048\u305f\u3044\u6570\u5024\u3084\u96c6\u8a08\u3057\u305f\u3044\u6642\u9593\u306a\u3069\uff09\n    - \u3053\u306e\u81ea\u52d5\u5de5\u7a0b\u306f &quot;\u30da\u30fc\u30b8\u3054\u3068&quot; \u306e &quot;\u8868\u793a\u56de\u6570&quot; \u7b49\u3092\u81ea\u52d5\u53d6\u5f97\u3057\u307e\u3059\u3002\n\nAPPENDIX-ja\n- \u3053\u306e\uff3b\u30a2\u30c9\u30aa\u30f3\u81ea\u52d5\u5de5\u7a0b\uff3d\u3092\u3001\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u56f3\u306e\u8a2d\u8a08\u753b\u9762\u3067\u914d\u7f6e\uff08\u5229\u7528\uff09\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\n    - \u3042\u3089\u304b\u3058\u3081\u3001\u30a2\u30c9\u30aa\u30f3XML\uff08\u3053\u306e\u81ea\u52d5\u5de5\u7a0b\u306e\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\uff09\u3092\u3001\uff3bWorkflow\u30a2\u30d7\u30ea\uff3d\u306b\u8ffd\u52a0\uff08\u30a2\u30c9\u30aa\u30f3\uff09\u3057\u307e\u3059\u3002\n    - \u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u8005\u306f\u3001Workflow\u57fa\u76e4\u306e\u5168\u3066\u306e\u30a2\u30d7\u30ea\u3067\u914d\u7f6e\uff08\u5229\u7528\uff09\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\uff08\u30a2\u30d7\u30ea\u5171\u6709\u30a2\u30c9\u30aa\u30f3\uff09\n    - \u30de\u30cb\u30e5\u30a2\u30eb M415: \u696d\u52d9\u30d7\u30ed\u30bb\u30b9\u5b9a\u7fa9\u3067\u5229\u7528\u53ef\u80fd\u306a\u81ea\u52d5\u5de5\u7a0b\u3092\u8ffd\u52a0\u3059\u308b (Professional edition)\n        - https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360002247792-M415\n- \u3053\u306e\uff3b\u30a2\u30c9\u30aa\u30f3\u81ea\u52d5\u5de5\u7a0b\uff3d\u3092\u542b\u3080\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u30a2\u30d7\u30ea\u3092\u3001\u904b\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\n    - \u3042\u3089\u304b\u3058\u3081\u3001\u6a29\u9650\u30e6\u30fc\u30b6\u306b\u3088\u308b\u8a8d\u53ef\uff08API\u901a\u4fe1\u306e\u8a31\u53ef\uff09\u304c\u5fc5\u8981\u3067\u3059\u3002\n    - Google Cloud Platform \u5074\u3067\u300eGoogle Analytics Data API\u300f\u3092\u6709\u52b9\u5316\u3059\u308b\n        - API\u3068\u30b5\u30fc\u30d3\u30b9\u306e\u6709\u52b9\u5316: `Google Analytics Data API`\n            - https:\/\/console.cloud.google.com\/project\/_\/apis\/library\n        - DOCUMENT https:\/\/cloud.google.com\/service-usage\/docs\/enable-disable\n    - Google Cloud Platform \u5074\u3067\u300eOAuth2.0\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u300f\u3092\u4f5c\u6210\u3059\u308b\n        - \u8a8d\u8a3c\u60c5\u5831\u306e\u4f5c\u6210\uff1a\n            - `OAuth\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID`\n    \u3000\u3000- \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7a2e\u985e\uff1a\n            - `\u30a6\u30a7\u30d6 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3`\n    \u3000\u3000- \u540d\u524d\uff1a\n            - `Questetra to GA4`\n    \u3000\u3000- \u627f\u8a8d\u6e08\u307f\u306eJavaScript\u751f\u6210\u5143\uff1a\n            - `https:\/\/your-subdomain.questetra.net`\n    \u3000\u3000- \u627f\u8a8d\u6e08\u307f\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8 URI:\n            - `https:\/\/s.questetra.net\/oauth2callback`\n        - DOCUMENT https:\/\/cloud.google.com\/endpoints\/docs\/frameworks\/java\/javascript-client\n    - Questetra \u5074\u3067\u300e&quot;HTTP\u8a8d\u8a3c&quot;\uff08OAuth2\uff09\u300f\u3092\u8a2d\u5b9a\u3059\u308b\n        - \u540d\u524d:\n            - `Questetra-GA4`\n        - \u8a8d\u53ef\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8URL:\n            - `https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&approval_prompt=force`\n        - \u30c8\u30fc\u30af\u30f3\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8URL:\n            - `https:\/\/accounts.google.com\/o\/oauth2\/token`\n        - \u30b9\u30b3\u30fc\u30d7:\n            - `https:\/\/www.googleapis.com\/auth\/analytics.readonly`\n        - \u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID \/ \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8:\n            - ( see above &quot;OAuth 2.0 client ID&quot; )\n- \u3053\u306e\uff3b\u30a2\u30c9\u30aa\u30f3\u81ea\u52d5\u5de5\u7a0b\uff3d\u3067\u306f\u3001Google\u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9\u304b\u3089\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u306b &quot;Data API (GA4)&quot; \u304c\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\n    - &quot;Reporting API V4&quot; \u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\n    - &quot;Core Reporting API V3&quot; \u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\n    - \u30ec\u30b9\u30dd\u30f3\u30b9\u304c30\u79d2\u3092\u8d85\u3048\u308b\u3088\u3046\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3001\u30a8\u30e9\u30fc\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\n    - &quot;Google Analytics Data API (GA4)&quot; \u306e\u8a73\u7d30\u4ed5\u69d8\n        - GUIDE: Creating a Report\n            - https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\/basics\n        - REFERENCE: Method: properties.runReport\n            - https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\/rest\/v1beta\/properties\/runReport\n- \u5b8c\u5168\u4e00\u81f4\u30ea\u30b9\u30c8\uff08inListFilter\uff09\u3092\u8a2d\u5b9a\u3059\u308c\u3070\u3001\u30e9\u30f3\u30ad\u30f3\u30b0\u30ea\u30b9\u30c8\u306e\u7d5e\u308a\u8fbc\u307f\u304c\u53ef\u80fd\u3067\u3059\u3002\n    - \u30c7\u30a3\u30e1\u30f3\u30b7\u30e7\u30f3\u306e\u5024\u304c\u3044\u305a\u308c\u304b\u306e\u5024\u3068\u5b8c\u5168\u4e00\u81f4\u3059\u308b\u30c7\u30fc\u30bf\u3060\u3051\u304c\u62bd\u51fa\u3055\u308c\u307e\u3059\u3002\uff08Case Sensitive\uff09\n        - `country`: `Canada,Japan`\n        - `customEvent:locale`: `ja`\n- \u3054\u81ea\u8eab\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u5229\u7528\u53ef\u80fd\u306a\u30c7\u30a3\u30e1\u30f3\u30b7\u30e7\u30f3\u3084\u30e1\u30c8\u30ea\u30c3\u30af\u30b9\u306f &quot;GA4 Dimensions & Metrics Explorer&quot; \u306b\u3066\u4e00\u89a7\u53ef\u80fd\u3067\u3059\u3002\n    - https:\/\/ga-dev-tools.web.app\/ga4\/dimensions-metrics-explorer\/\n    - DOCUMENT https:\/\/support.google.com\/analytics\/answer\/9143382?hl=ja\n- \u65e5\u4ed8\u7bc4\u56f2\u306e\u6307\u5b9a\u306b\u306f\u3001\u65e5\u4ed8\u578b\u30c7\u30fc\u30bf\u3084\u65e5\u6642\u578b\u30c7\u30fc\u30bf\u306a\u3069\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002\n    - `YYYY-MM-DD`, `YYYY\/MM\/DD`, `YYYY-MM-DD hh:mm` etc\n    - \u533a\u5207\u308a\u6587\u5b57\u306e\u3042\u308b\u6587\u5b57\u5217\u3067 Year Month Date \u306e\u9806\u3067\u8868\u8a18\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\n*\/\n\n<\/code><\/pre><\/div>\n\n\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image alignright\"><a href=\"#\"><img decoding=\"async\" src=\"data:image;base64,\niVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAqxJREFUWEfN\nl09o1FAQxr952bi7Zl2xIpXSg6iIKAr1IhQU\/+BBPAjeWtSDIrSKYEUsgqmt8aKIerIFqRdFb0U8\niRd78Ca2CB4UBL0oHqqibFR2uxl52c12s0m6SbZLzDG8mfm9mW\/mvUdI+KOw8b+MYnm+jCMEsRfg\nHgbWEbBK2jPwg4BPAM0yrBe\/FEx1jeJ3GN9NAQpXsBaWGCbwAIBMGKcA\/jJoAsK6nhvD18VsFgUw\ndQyA6SYIWsjA7mUME8QXNAMTQfaBAH9GxF2LeTBW4AYjQTSevWqd9vPlC1C4LB4Rcd9SBHd8MNPj\n3DWrv9GnByDuzsWaLVAP3oLo3gmQqMXhufcoPb+I8sdp+GXCBWDXHDQeZ+fqnhGouy8BqXSDDhjz\nr++h+FRq2O6ZwXpN1ACk2qlMH+IKTt03BnXXMKAs8\/DPz0yi+ORUNT5MVnij0x0LALq4TeBzcXYv\nbUID2HOD7uQMa0ja2QByyKws07cIfe7hjAIg58RPhVfLYWUDFHQcJdCDuLuPmoHK9ORjOQMPbQBT\nF5MAnwgDkOo9D7V3CEjnXctJKEAqC5C3s10aqFnRfc2wTlYBaAZATxiAzJk3EJ3bwiytrfEHwKxm\n8I5qCei7c7A085w5+xay56N8fgDyAMsZ3OFkgMM6XCoAGU8zuFIwU6dkAQp68iXwiJDy3Uht7wd1\nbnVVR1m\/H7SiK2zF7HVNRejXhunjz6BsOODbVpGiBwLUtaHfIIojtiAw\/y6oG0R+o7jNAO5RXBnH\n7sOonQCew8gGaDiO2wbAAcdxZR4sXEjSfVNQNh9uXYRFE6VpA6WXN6oSCbiQOAKqv5Ipmw6Bsh1R\nRe9ab829g\/X5lf2v6ZXMsUz0UuqXiZZSELBzx+f\/+zCplSPJp1l96hN7nLZa\/2b2\/wB4mmEwxoWh\nEAAAAABJRU5ErkJggg==\n\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-cloud-download-alt\"><\/i> Download<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1HnI6MYFUosXJXzuJYHD1TDSnaM0f6j4o\/view?usp=drivesdk\" target=\"_blank\">google-analytics-ga4report-pageviews-by-hostname-pagepath-2022.xml<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/drive.google.com\/file\/d\/1VyvfU6I2vilVOeyzNeqOqkOaoZ2FcpCE\/view?usp=sharing\" data-type=\"link\" data-id=\"https:\/\/drive.google.com\/file\/d\/1VyvfU6I2vilVOeyzNeqOqkOaoZ2FcpCE\/view?usp=sharing\">google-analytics-ga4report-pageviews-by-hostname-pagepath-2023.xml<\/a>\n<ul class=\"wp-block-list\">\n<li>2023-08-17 (C) Questetra, Inc. (MIT License)<\/li>\n\n\n\n<li>for &#8220;GraalJS standard (engine-type 3)&#8221; on v15.0 or above<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-right has-small-font-size wp-block-paragraph\">2022-04-11 (C) Questetra, Inc. (MIT License)<br><a href=\"https:\/\/support.questetra.com\/en\/addons\/google-analytics-ga4report-pageviews-by-hostname-pagepath-2022\/\">https:\/\/support.questetra.com\/addons\/google-analytics-ga4report-pageviews-by-hostname-pagepath-2022\/<\/a><br><i class=\"fal fa-info-circle\"><\/i> The Add-on import feature is available with <span style=\"color:#4a86e8\" class=\"has-inline-color\"><strong>Professional<\/strong><\/span> edition.<br>Freely modifiable JavaScript (ECMAScript) code. No warranty of any kind.<\/p>\n\n\n<div class=\"su-divider su-divider-style-dashed\" style=\"margin:30px 0;border-width:8px;border-color:#009900\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-lightbulb-exclamation\"><\/i> Notes<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can automate the extraction work of Google Analytics Data. AnalyticsReports\n<ul class=\"wp-block-list\">\n<li>When a case reaches the automated process, the date is automatically extracted via API.<\/li>\n\n\n\n<li>Extracted via &#8220;Google Analytics Data API (GA4)&#8221; for GA4 properties.\n<ul class=\"wp-block-list\">\n<li>Data API v1 can only be used to access GA4 properties and is not compatible with Universal Analytics.\n<ul class=\"wp-block-list\">\n<li>As of 202204, it is a Beta version, although no breaking changes are expected.<\/li>\n\n\n\n<li><a href=\"https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\" rel=\"nofollow\">https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Make sure that the property ID to be extracted is <code>G-XXXXXXXXXX<\/code> (GA4 property).\n<ul class=\"wp-block-list\">\n<li>GA4 Properties is the latest version of Google Analytics released in October 2020.<\/li>\n\n\n\n<li><a href=\"https:\/\/support.google.com\/analytics\/answer\/10089681\" rel=\"nofollow\">https:\/\/support.google.com\/analytics\/answer\/10089681<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If you want to automate the data extraction from the universal analytics (UA) property,\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.questetra.com\/ja\/addons\/google-analytics-reports-pageviews-by-hostname-pagepath-2021\/\">https:\/\/support.questetra.com\/ja\/addons\/google-analytics-reports-pageviews-by-hostname-pagepath-2021\/<\/a><\/li>\n\n\n\n<li>The property ID of the UA property is <code>UA-XXXXXXXX-X<\/code>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Note that the concept of &#8220;session&#8221; has changed significantly in the UA and GA4 properties.\n<ul class=\"wp-block-list\">\n<li>In GA4, revisit within 30 minutes are counted as one session.<\/li>\n\n\n\n<li>The number of sessions in the GA4 property tends to be less than the number of sessions in the UA property.<\/li>\n\n\n\n<li><a href=\"https:\/\/support.google.com\/analytics\/answer\/9191807?hl=ja\" rel=\"nofollow\">https:\/\/support.google.com\/analytics\/answer\/9191807?hl=ja<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>The measured value for each page is automatically acquired. There are four indicators (metrics) as follows.\n<ul class=\"wp-block-list\">\n<li>&#8220;PageViews&#8221; metrics=<code>screenPageViews<\/code><\/li>\n\n\n\n<li>&#8220;Number of sessions&#8221; metrics=<code>sessions<\/code><\/li>\n\n\n\n<li>&#8220;Number of engaged sessions&#8221; metrics=<code>engagedSessions<\/code>\n<ul class=\"wp-block-list\">\n<li>(Number of sessions that lasted longer than 10 seconds, or had 2 or more screen views )<\/li>\n\n\n\n<li><a href=\"https:\/\/support.google.com\/analytics\/answer\/11109416\" rel=\"nofollow\">https:\/\/support.google.com\/analytics\/answer\/11109416<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>&#8220;Number of active users&#8221; metrics=<code>activeUsers<\/code><\/li>\n\n\n\n<li>You can also get the total of each. (Not very significant except for &#8220;PageViews&#8221;)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>If any of the following 3 dimensions are different, they will be aggregated as separate pages.\n<ul class=\"wp-block-list\">\n<li>&#8220;Hostname&#8221; dimensions=<code>hostName<\/code><\/li>\n\n\n\n<li>&#8220;Page path&#8221; dimensions=<code>pagePath<\/code><\/li>\n\n\n\n<li>&#8220;Page name&#8221; dimensions=<code>pageTitle<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Reference: Dimensions and metrics\n<ul class=\"wp-block-list\">\n<li>&#8220;Dimension&#8221; is the analysis axis. It is used in expressions such as &#8220;aggregate by XX&#8221;.<\/li>\n\n\n\n<li>&#8220;Metrics&#8221; are measured values. (Numerical values\u200byou want to count, time you want to total, etc.)<\/li>\n\n\n\n<li>This Automated Step automatically acquires the &#8220;number of pageviews&#8221; etc. by each page.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-images\"><\/i> Capture<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?ssl=1\" target=\"_blank\" rel=\"noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" data-attachment-id=\"120615\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/excel-find-row\/attachment\/google-analytics-ga4report-pageviews-2022-capture-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?fit=1200%2C675&amp;ssl=1\" data-orig-size=\"1200,675\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"google-analytics-ga4report-pageviews-2022-capture-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?fit=1024%2C576&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=1200%2C675&#038;ssl=1\" alt=\"Reports the page popularity in the specified period in ranking format. The number of screen page views, sessions, engaged sessions and active users for each page are aggregated in TSV format. Dimension Filter &quot;inListFilter&quot; is also available.\" class=\"wp-image-120615\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?w=1200&amp;ssl=1 1200w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=768%2C432&amp;ssl=1 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default q-box\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"520\" height=\"630\" data-attachment-id=\"120619\" data-permalink=\"https:\/\/support.questetra.com\/en\/addons\/excel-find-row\/attachment\/google-analytics-ga4report-pageviews-2022-config-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-config-en.png?fit=887%2C1075&amp;ssl=1\" data-orig-size=\"887,1075\" data-comments-opened=\"0\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"google-analytics-ga4report-pageviews-2022-config-en\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-config-en.png?fit=520%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-config-en-520x630.png?resize=520%2C630&#038;ssl=1\" alt=\"Reports the page popularity in the specified period in ranking format. The number of screen page views, sessions, engaged sessions and active users for each page are aggregated in TSV format. Dimension Filter &quot;inListFilter&quot; is also available.\" class=\"wp-image-120619\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-config-en.png?resize=520%2C630&amp;ssl=1 520w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-config-en.png?resize=260%2C315&amp;ssl=1 260w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-config-en.png?resize=768%2C931&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-config-en.png?w=887&amp;ssl=1 887w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-book\"><\/i> Appendix<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To place this Add-on Automated Step on the design screen of the workflow diagram:\n<ul class=\"wp-block-list\">\n<li>Import Addon-XML (definition file of this automated step) to Workflow App in advance.<\/li>\n\n\n\n<li>The system admins can also make it available in all Workflow Apps. (App-shared Add-on)<\/li>\n\n\n\n<li>Manual M415: Adding an Auto-Step to be Used in a Business Process Definition\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360002247792-M415\" rel=\"nofollow\">https:\/\/questetra.zendesk.com\/hc\/en-us\/articles\/360002247792-M415<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>To activate the Workflow App including this Add-on automated Step:\n<ul class=\"wp-block-list\">\n<li>Authorize API communications by an authorized user in advance.<\/li>\n\n\n\n<li>Enable Google Analytics Data API on the Google Cloud Platform\n<ul class=\"wp-block-list\">\n<li>APIs and Services: <code>Google Analytics Data API<\/code>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/console.cloud.google.com\/project\/_\/apis\/library\" rel=\"nofollow\">https:\/\/console.cloud.google.com\/project\/_\/apis\/library<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>DOCUMENT <a href=\"https:\/\/cloud.google.com\/service-usage\/docs\/enable-disable\" rel=\"nofollow\">https:\/\/cloud.google.com\/service-usage\/docs\/enable-disable<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Create an &#8220;OAuth2.0 client ID&#8221; on the Google Cloud Platform\n<ul class=\"wp-block-list\">\n<li>Creating credentials:\n<ul class=\"wp-block-list\">\n<li><code>OAuth Client ID<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Application type:\n<ul class=\"wp-block-list\">\n<li><code>Web application<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Name:\n<ul class=\"wp-block-list\">\n<li><code>Questetra to GA4<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Authorized JavaScript origins:\n<ul class=\"wp-block-list\">\n<li><code>https:\/\/your-subdomain.questetra.net<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Authorized redirect URI:\n<ul class=\"wp-block-list\">\n<li><code>https:\/\/s.questetra.net\/oauth2callback<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>DOCUMENT <a href=\"https:\/\/cloud.google.com\/endpoints\/docs\/frameworks\/java\/javascript-client\" rel=\"nofollow\">https:\/\/cloud.google.com\/endpoints\/docs\/frameworks\/java\/javascript-client<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Set HTTP authentication (OAuth2) on the Questetra Workflow-App\n<ul class=\"wp-block-list\">\n<li>Name:\n<ul class=\"wp-block-list\">\n<li><code>Questetra-GA4<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Authorization Endpoint URL:\n<ul class=\"wp-block-list\">\n<li><code>https:\/\/accounts.google.com\/o\/oauth2\/auth?access_type=offline&amp;approval_prompt=force<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Token Endpoint URL:\n<ul class=\"wp-block-list\">\n<li><code>https:\/\/accounts.google.com\/o\/oauth2\/token<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Scope:\n<ul class=\"wp-block-list\">\n<li><code>https:\/\/www.googleapis.com\/auth\/analytics.readonly<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Client ID \/ Consumer Secret:\n<ul class=\"wp-block-list\">\n<li>(see above &#8220;OAuth 2.0 client ID&#8221;)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>In this Add-on Automated Step Data API (GA4) is used to acquire data from Google Analytics.\n<ul class=\"wp-block-list\">\n<li>Not Reporting API V4.<\/li>\n\n\n\n<li>Not Core Reporting API V3.<\/li>\n\n\n\n<li>Requests with a response longer than 30 seconds may result in an error.<\/li>\n\n\n\n<li>Detailed specifications of Google Analytics Data API (GA4)\n<ul class=\"wp-block-list\">\n<li>GUIDE: Creating a Report\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\/basics\" rel=\"nofollow\">https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\/basics<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>REFERENCE: Method: properties.runReport\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\/rest\/v1beta\/properties\/runReport\" rel=\"nofollow\">https:\/\/developers.google.com\/analytics\/devguides\/reporting\/data\/v1\/rest\/v1beta\/properties\/runReport<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Can also filter the ranking list by Dimension Filter (inListFilter).\n<ul class=\"wp-block-list\">\n<li>Only data which dimension values\u200b exactly match any of the values will be extracted. (Case Sensitive)\n<ul class=\"wp-block-list\">\n<li><code><strong>country<\/strong><\/code>: <code><em>Canada<\/em>,<em>Japan<\/em><\/code><\/li>\n\n\n\n<li><code><strong>customEvent:locale<\/strong><\/code>: <code><em>ja<\/em><\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>The dimensions and metrics available in your properties can be listed in GA4 Dimensions &#038; Metrics Explorer.\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/ga-dev-tools.web.app\/ga4\/dimensions-metrics-explorer\/\" rel=\"nofollow\">https:\/\/ga-dev-tools.web.app\/ga4\/dimensions-metrics-explorer\/<\/a><\/li>\n\n\n\n<li>DOCUMENT <a href=\"https:\/\/support.google.com\/analytics\/answer\/9143382\" rel=\"nofollow\">https:\/\/support.google.com\/analytics\/answer\/9143382<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>DATE type data or DATETIME type data are also available to specify the date range.\n<ul class=\"wp-block-list\">\n<li><code>YYYY-MM-DD<\/code>, <code>YYYY\/MM\/DD<\/code>, <code>YYYY-MM-DD hh:mm<\/code> etc<\/li>\n\n\n\n<li>Must be written in the order of Year Month Date with a delimiter.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><i class=\"fal fa-balance-scale\"><\/i> See also<\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-questetra-support wp-block-embed-questetra-support\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"jqSuQvaUoB\"><a href=\"http:\/\/support.questetra.com\/en\/addons\/google-analytics-reports-pageviews-by-hostname-pagepath-2021\/\">Google Analytics: Reports, Pageviews by Hostname-PagePath<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Google Analytics: Reports, Pageviews by Hostname-PagePath&#8221; &#8212; Questetra Support\" src=\"http:\/\/support.questetra.com\/addons\/google-analytics-reports-pageviews-by-hostname-pagepath-2021\/embed\/#?secret=tPvYBrZKjZ#?secret=jqSuQvaUoB\" data-secret=\"jqSuQvaUoB\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"426\" height=\"240\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/03\/ads1920x1080-nocode-20220302-min.gif?resize=426%2C240&#038;ssl=1\" alt=\"\" class=\"wp-image-119626 q-box\"><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Reports the page popularity in the specified period in ranking format. The number of screen page views, sessions, engaged sessions and active users for each page are aggregated in TSV format. Dimension Filter &#8220;inListFilter&#8221; is also available.<\/p>\n","protected":false},"author":2,"featured_media":120615,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"Reports the page popularity in the specified period in ranking format. The number of screen page views, sessions, engaged sessions and active users for each page are aggregated in TSV format. Dimension Filter \"inListFilter\" is also available.","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"{title}\n\n{excerpt}\n\n{url}","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_wpas_customize_per_network":false,"jetpack_post_was_ever_published":false},"categories":[168],"tags":[3252],"class_list":["post-120623","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-addons","tag-google-analytics-data-api-v1"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?fit=1200%2C675&ssl=1","uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/04\/google-analytics-ga4report-pageviews-2022-capture-en.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/en\/author\/imamuragenichi\/"},"uagb_comment_info":2,"uagb_excerpt":"Reports the page popularity in the specified period in ranking format. The number of screen page views, sessions, engaged sessions and active users for each page are aggregated in TSV format. Dimension Filter \"inListFilter\" is also available.","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9DiIh-vnx","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":67373,"url":"https:\/\/support.questetra.com\/en\/addons\/googleanalytics-reportspv\/","url_meta":{"origin":120623,"position":0},"title":"Google Analytics Reports (PV ranking)","author":"Hirotaka NISHI","date":"2021-03-29","format":false,"excerpt":"Creates a ranking report (TSV) for the number of page views. It is also possible to aggregate it with a specified duration and filter criteria.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":116123,"url":"https:\/\/support.questetra.com\/en\/addons\/google-analytics-reports-pageviews-by-hostname-pagepath-2021\/","url_meta":{"origin":120623,"position":1},"title":"Google Analytics: Reports, Pageviews by Hostname-PagePath","author":"IMAMURA, Genichi","date":"2021-10-28","format":false,"excerpt":".Reports the page popularity in the specified period in ranking format. It is also possible to check the details of the number of page views, the number of sessions, and the number of times visitors in TSV format. filtersExpression is also available.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"Google Analytics: Reports, Pageviews by Hostname-PagePath","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/google-analytics-reports-pageviews-by-hostname-pagepath-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/google-analytics-reports-pageviews-by-hostname-pagepath-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/google-analytics-reports-pageviews-by-hostname-pagepath-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/google-analytics-reports-pageviews-by-hostname-pagepath-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/google-analytics-reports-pageviews-by-hostname-pagepath-2021-nocode-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67377,"url":"https:\/\/support.questetra.com\/en\/addons\/googleanalytics-reportsref\/","url_meta":{"origin":120623,"position":2},"title":"Google Analytics Reports (Referrer ranking)","author":"Hirotaka NISHI","date":"2021-03-29","format":false,"excerpt":"Creates a ranking report related with your referrer page. It is also possible to aggregate it with a specified duration and filter criteria.","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67375,"url":"https:\/\/support.questetra.com\/ja\/addons\/googleanalytics-reportspv\/","url_meta":{"origin":120623,"position":3},"title":"Google Analytics \u30ec\u30dd\u30fc\u30c8 (PV ranking)","author":"Hirotaka NISHI","date":"2021-03-29","format":false,"excerpt":"Page View \u6570\u306b\u95a2\u3059\u308b\u30e9\u30f3\u30ad\u30f3\u30b0\u30ec\u30dd\u30fc\u30c8\uff08TSV\uff09\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u96c6\u8a08\u5bfe\u8c61\u671f\u9593\u306f\u4efb\u610f\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u30d5\u30a3\u30eb\u30bf\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u305f\u96c6\u8a08\u3082\u53ef\u80fd\u3067\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":67366,"url":"https:\/\/support.questetra.com\/en\/addons\/googleanalytics-reportsdomain\/","url_meta":{"origin":120623,"position":4},"title":"Google Analytics Reports (Domain ranking)","author":"Hirotaka NISHI","date":"2017-07-24","format":false,"excerpt":"Download GoogleAnalytics-reportsDomain.xmlSince Rhino (deprecated) is specified as the script engine, a setting error will occur even if you install this in a workflow AppTo use this Add-on, you need to change the script engine and modify the script accordinglyPlease refer to Notice Concerning Deprecation of Rhino for the method for\u2026","rel":"","context":"In &quot;Add-ons&quot;","block_context":{"text":"Add-ons","link":"https:\/\/support.questetra.com\/en\/category\/addons\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2017\/07\/google-analytics-report-header.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":116128,"url":"https:\/\/support.questetra.com\/ja\/addons\/google-analytics-reports-pageviews-by-hostname-pagepath-2021\/","url_meta":{"origin":120623,"position":5},"title":"Google \u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9: \u30ec\u30dd\u30fc\u30c8, Hostname-PagePath \u3054\u3068\u306e Pageviews","author":"IMAMURA, Genichi","date":"2021-10-28","format":false,"excerpt":"\u6307\u5b9a\u671f\u9593\u306b\u304a\u3051\u308b\u30da\u30fc\u30b8\u4eba\u6c17\u5ea6\u3092\u30e9\u30f3\u30ad\u30f3\u30b0\u5f62\u5f0f\u3067\u30ec\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u30da\u30fc\u30b8\u30d3\u30e5\u30fc\u6570\u3001\u30da\u30fc\u30b8\u5225\u8a2a\u554f\u6570\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u6570\u3001\u95b2\u89a7\u958b\u59cb\u6570\u306e\u8a73\u7d30\u3092TSV\u5f62\u5f0f\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002filtersExpression \u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3002","rel":"","context":"In &quot;\u30a2\u30c9\u30aa\u30f3&quot;","block_context":{"text":"\u30a2\u30c9\u30aa\u30f3","link":"https:\/\/support.questetra.com\/ja\/category\/addons\/"},"img":{"alt_text":"Google \u30a2\u30ca\u30ea\u30c6\u30a3\u30af\u30b9: \u30ec\u30dd\u30fc\u30c8, Hostname-PagePath \u3054\u3068\u306e Pageviews","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/google-analytics-reports-pageviews-by-hostname-pagepath-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/google-analytics-reports-pageviews-by-hostname-pagepath-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/google-analytics-reports-pageviews-by-hostname-pagepath-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/google-analytics-reports-pageviews-by-hostname-pagepath-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/10\/google-analytics-reports-pageviews-by-hostname-pagepath-2021-nocode-ja.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/120623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/comments?post=120623"}],"version-history":[{"count":8,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/120623\/revisions"}],"predecessor-version":[{"id":149776,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/posts\/120623\/revisions\/149776"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media\/120615"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/media?parent=120623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/categories?post=120623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.questetra.com\/en\/wp-json\/wp\/v2\/tags?post=120623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}