Can you collect the page depth by page using Google Analytics API - google-analytics

In GA you're able to see data for landing pages and second pages (the second page viewed in a session) as well as the conversion rates associated with it.
Are you able or legally allowed to collect the 3rd/4th/5th page viewed in a session as a custom dimension? If so how would you write the code for a custom dimension.
Example data: the /shop page of a website had 300 pageviews as 2nd page, 700 pageviews as the 3rd page, 100 pageviews as the 4th page, etc.

Related

Pageviews not showing up

I have a page on my site that I know received a number of page views over a certain period of time since I had a facebook campaign redirect people to it and facebook's analytics showed me 1458 clicks on that ad. However when I go to GA for that page it list 0 page views for that same time period.
What's wrong?

Page views count decreases when i select page path as dimension

I am using google Analytic`s in my product to calculate page views. I am facing a problem. When i call GA API with only ga:source as a dimension the count is 7176 but when i add ga:pagePath in dimension, the count is decreased.
If I understand correctly, page path is when visitors click the full url of your site to browse it.
Source, on the other hand, applys when visitors enter your website after a google search of your site, or one of your pages AND those who added the full url.
So, it is logical that the ga:source is greater than ga:pagePath

ga:searchDestinationPage == ga:landingPagePath?

Using the German UI of Google Analytics I stumbled upon two dimensions called "Zielseite" and one "Zielseite der Suche"
So switching to English version brought up the following possible dimensions:
Landing Page and Search Destination Page -- no idea what the second "Zielseite" could be.
Using https://developers.google.com/analytics/devguides/reporting/core/dimsmets I found the following API-names:
ga:landingPagePath
UI Name: Landing Page
The first page in a user's session, or landing page.
ga:searchDestinationPage
UI Name: Destination Page
The page the user immediately visited after performing an internal search on your site. (Usually the search results page).
ga:searchAfterDestinationPage
UI Name: Search Destination Page
A page that the user visited after performing an internal search on your site.
So I started some analysis-queries:
metric: ga:sessions
dimensions: ga:landingPagePath,ga:searchDestinationPage,ga:searchUsed
All results had ga:landingPagePath==ga:seachDestinationPage (no matter if ga:searchUsed==Visits With Site Search or Visits Without Site Search)
That's not what I would expect. (155 with Search and 5237 without Search)
So the question is who this dimensions always have the same value and what which one does have the correct value?
Landing page path is the first page of a session coming from anywhere.
Search destination page is for INTERNAL search results. It is not a landing page -- it is the page you went to after you did a search ON the site itself (assumes that the site has a site search capability and that GA is configured to recognize internal search queries).
Sessions are counted ONLY on landing pages, and including search destination page in your query automatically restricts the query to visits site site search only (there is no (not set) value for that dimension - sessions without a value are excluded from the report). Try the query with Unique Pageviews, with and without the search destination page, and without the landing page, then compare.
Welcome to custom reporting in GA....

show entire dimension tree on the same page of google analytics report

I want to create a google analytics report breakdown that will show a breakdown of the number of users for each landing page. I tried to set sessions as a metric and landing page plus country as the dimensions in the drilldown.
but the report lists 1 column for the landing page and another for the number of sessions.
to see the countries for a specific landing page i have to click on the landing page link.
how can i view the entire dimension drill-down tree on the same page?

Filtering Page URLs in Google Analytics

I have created a custom report which contains
Page (url),
Page Title,
Visitor Duration,
Bounce Rate
I am using Adwords for advertising and want to see which pages get more hit and visit duration. When I view my custom report some of the page URLs looks like
"/tr-url/en-ru.ru/www.domain.com/corporate/about-us/" so I am having 3-4 different hit for about-us page.
Is there a filter to get only the real page URL like /about-us, /contact, /company-info ?
Thanks in advance

Resources