How can I access full referral path for one session/user through Google Reporting API V4
<p>How can I access the <strong>full referral path for one session/user</strong> through Google Reporting API V4 ? <strong>In this case in PHP.</strong></p>

<p>For example we have following code found on Google's Reporting API V4 Documentation.
(<a href="https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-php" rel="nofollow">https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-php</a>)</p>

<pre><code>function getReport(&amp;$analytics) {

  // Replace with your view ID, for example XXXX.
  $VIEW_ID = "&lt;REPLACE_WITH_VIEW_ID&gt;";

  // Create the DateRange object.
  $dateRange = new Google_Service_AnalyticsReporting_DateRange();
  $dateRange-&gt;setStartDate("7daysAgo");
  $dateRange-&gt;setEndDate("today");

  // Create the Metrics object.
  $sessions = new Google_Service_AnalyticsReporting_Metric();
  $sessions-&gt;setExpression("ga:sessions");
  $sessions-&gt;setAlias("sessions");

  // Create the ReportRequest object.
  $request = new Google_Service_AnalyticsReporting_ReportRequest();
  $request-&gt;setViewId($VIEW_ID);
  $request-&gt;setDateRanges($dateRange);
  $request-&gt;setMetrics(array($sessions));

  $body = new Google_Service_AnalyticsReporting_GetReportsRequest();
  $body-&gt;setReportRequests( array( $request) );
  return $analytics-&gt;reports-&gt;batchGet( $body );
}
</code></pre>

<p>This part is interesting:</p>

<pre><code>$sessions-&gt;setExpression("ga:sessions");
$sessions-&gt;setAlias("sessions");
</code></pre>

<p>Dimensions &amp; Metrics Explorer
(<a href="https://developers.google.com/analytics/devguides/reporting/core/dimsmets" rel="nofollow">https://developers.google.com/analytics/devguides/reporting/core/dimsmets</a>)</p>

<blockquote>
  <p>The path of the referring URL (e.g., document.referrer). If someone
  places on their webpage a link to the property, this is the path of
  the page containing the referring link.</p>
  
  <p>The full referring URL including the hostname and path.</p>
</blockquote>

<p>I am assuming that I have to go this way just fetching the desired dimensions/metrics: </p>

<pre><code>$sessions-&gt;setExpression("ga:referralPath");
$sessions-&gt;setAlias("referral_path");
</code></pre>

<p>or</p>

<pre><code>$sessions-&gt;setExpression("ga:fullReferrer");
$sessions-&gt;setAlias("full_referrer");
</code></pre>

<p>Would be this the right approach? 
If not is there another way to accomplish this?</p>

<p>And another question:
When making a request with this metrics/dimensions:</p>

<pre><code>$sessions-&gt;setExpression("ga:referralPath");
$sessions-&gt;setAlias("referral_path");
</code></pre>

<p><strong>How Google knows from which session to take the referralPath?</strong></p>