Page views count decreases when i select page path as dimension - google-analytics

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

Related

In Google Analytics, how do I plot on a timeline users who visited one page but not another?

I'm looking for some help creating a Google Analytics report that shows, in a timeline, the number of Users who visited one page (e.g. Checkout page) but NOT another page (e.g. Thank You page), and in that order. This seems like such a simply report to run, but I cannot seem to find the right settings in Google Analytics to pull this together.
What you need is a segment with the following settings:
Include sessions
Page includes /checkout (replace with your checkout URL) AND
Page excludes /thankyou (replace with whatever your thank you page URL is)

set up dtm and analytics on a new website

I have a 3 page website. I want to know how many unique visitors visit each page of the website. That is how many unique visitors in page A, and from page how many reach page B and from page B how many reach page C.
I am unable to determine or understand how the eVars and success events will be set in this scenario.
Please help.
This can be accomplished quickly using the default path reports in Adobe Analytics.
This "out of the box" report will show you a "fall out" of visitors who started on page A went to page B and then on to page C. No eVars, props or events are needed for this.
The report will also show you the percentage of visitors who didn't complete the specified path as well.
Setting the page name with DTM will be helpful but is not required because the URL is used as the PN if it isn't set.
Hope this helps.

Find #pages in website

I'm collecting data on complexities of several domains- represented by total pages, visited and unvisited.
I was initially finding what I wanted from Google Analytics by drilling down to Behavior -> Site Content -> Landing Pages but wasn't sure if that was returning unvisited sites. Then I tried All Pages per domain, but that returned like 1,800 results for "pages", with params in some cases /Pages/Results.aspx?k=update.
That being said, I don't think I can rely on GA for total pages per site.
Then I thought about using a web scraper, namely web2disk or httrack.com, to scrape for the #pages per domain. Is that a good path to take? Is it necessary to get this information?
Thanks
If you want to know how many pages there are on your site you need to crawl your site to find all the pages. Because of the way it works Google analytics will 100% only show you data on pages which have been loaded (which fires the analytics code) in a browser.
http://www.screamingfrog.co.uk/seo-spider/ is a paid for crawler you can use to find all the pages (£99), or you could potentially try to hack something together using a free crawler like http://import.io (disclaimer: I work at import.io) to get all the URls.
Find all visited pages via GA:
Behaviour -> Site Content -> Landing Pages does not give you any pages which were not 'Landed upon'.
Then I tried All Pages per domain, but that returned like 1,800 results for "pages", with params in some cases /Pages/Results.aspx?k=update.
To remove the params from the page URls you can use a report filter at the top right of the table. Click 'advanced', and use the tools there to exclude params from URls.
Alternatively you can switch your primary dimension to 'Page title' if you have Unique page titles for each page (and identical ones for pages with params).

How to track conversion funnel in Google Analytics where a banner ad is shown on many pages.

I have a website that features a call to action/promotion button on nearly all pages of the site.
I have currently configured a conversion funnel that shows me how many people arrive on the call to action page, and then how many people make it to successfully complete the action page.
What I want to see though is how many unique visitors over the reporting see the banner at the top of the funnel.
eg. Something like this:
Visitors accessing website: 1000
Visitors clicked on call to action page: 100
Visitors successfully submitted call to action form: 45
My initial thoughts was to do this using the frontpage only, but I forgot that this banner/call to action ad is featured on many pages around the website. Many people find the site through SEO and never even pass through the frontpage.
Is it possible to use a wildcard for a domain or something similar in Google Analytics? Or maybe I am approaching this the wrong way.
Last of all - I know I can accomplish this by pulling up 2 reports: site wide unique visitors and comparing that to how many people hit the first stage of the existing conversion funnel. But it's a hassle to have to do this regularly manually.
While using funnel analysis, it is normal to have funnel steps that represent more than 1 urls. Take the basic case of ecommerce sites, where the final goal maybe the same transaction completion page, but the funnel step corresponding to product page can be triggered by many different product pages and not just one.
Based on the page url structure of your website, you can choose any of the below 2 match types to add multiple urls to a single step:
1, Begins with : If all the different pages displaying the ad have a set of common characters in the beginning, then use this.
2, Regular Expression Match : If the different pages that contain your banner ad how totally unrelated url, then find a suitable regex that can capture all those urls

How can I set an analytics goal for any product page?

I'm developing an E-Commerce site and I want to set-up a Google Analytics Goal for whenever a user visits any product page. However, the product pages are all in different categories and have different urls.
There are 2 approaches you could take.
The preferable way is for you to unify the product page URLs to meet a particular pattern, so that you could configure the goal to be a Head Match on that pattern.
ie, if your gimzo product URL is domain/products/gizmo, and your widget product URL is domain/products/widget, you could set the goal to trigger for viewing /domain/products as a head match.
Or, you could just set a new pageview/event for every product pageview. ie, on the product page, set an additional event to lock the goal against. (The drawback to this approach is that it messes with bounce and exit rate numbers.)
Now, the one caveat with these approaches is that a single goal can only trigger once per visit, so, your "Goal" will only trigger once, even if I view 4 product pages in my visit.

Resources