Google Analytic: Only include traffic that has visited a particular page - google-analytics

I want to only view traffic in Google Analytics that has visited a certain page at any point during their session. It doesn't matter if it's the landing page, the second page, the third page, etc. They just need to have visited a particular page at some point during the session.
I have attempted to do it using a custom segment as follows:
create new segment--> advanced --> conditions --> visits --> Page --> contains --> [required url]
I have to questions
1) Will this segment do what is intended? I.e. Have I set it up correctly to only view traffic that visited the intended page at some point.
2) Is there a way to do this using a custom filter rather than a segment?

You can create a View in Google Analytics existing property and add a filter to include only data for Request URI.
Admin > Create New View : > View Settings > Filter > Include > Filter Field : Request URI > Field Pattern : Use a regex or exact url > Done.
The data in the View would be filtered as per your requirement.
Hope this helps.

Related

Cross Domain Tracking with Google Tag Manager across three sites

I have three sites across which I need to track traffic in the same Google Analytics account, with the traffic originating from the first one, passing from the second one, and being converted on the third one.
Site#1 is on domainA.com
Site#2 is on sub1.domainB.com
Site#3 is on sub2.domainB.com
I visit Site#1 (example URL: domainA.com/?utm_source=MySource&utm_medium=MyMedium&utm_campaign=MyCampaign) and I click on the element (button) which takes me to Site#2. The URL then becomes sub1.domainB.com/?_gl=[something]&_ga=[someghing else] which basically indicates that cross domain tracking has been set up correctly, and appears to be working. In Analytics I can see that Source, Medium, and Campaign are the same ones as set in the Site#1 url parameters.
On Site#2 I click on yet another element (a different button) and that takes me to Site#3. That page's url now becomes sub2.domainB.com and there are no CDT url parameters present there, which at first glance seems to be correct, as CDT shouldn't care about subdomains, right?
But then I examine the Google Analytics data, and this is when I get confused; Site#1, and Site#2 both seem to share the same Source, Medium, and Campaign data, as set in the original URL. When I navigate to Site#3 however, and place my order there, I am seeing that the Source, Medium, and Campaign are now (direct), (none), and (none), which indicates that the UTM data is lost somewhere along the way.
My current configuration in GTM is the following:
GTM and Google Analytics fires on all three sites.
Track Type: Page View (Fires on all pages)
Enable overriding settings in this tag (Enabled)
More Settings > Fields to Set > Field Name "allowLinker" : true
More Settings > Fields to Set > Field Name "cookieDomain" : auto
(I've experimented both with and without this field, without much different outcome)
More Settings > Cross Domain Tracking > Auto Link Domains : domainA.com, domainB.com
More Settings > Cross Domain Tracking > Decorate Forms: True
Also, in Google Analytics' Property > JS Tracking Info > Referral Exclusion List, I have both domainA.com, and domainB.com listed there.
What is it that I am missing, that would allow me to make Site#3 be aware of the utm_source, utm_medium, and utm_campaign values when the user eventually converts?

Google Analytics exclude exact part of url

I've been searching the web, but can't find a solution. Who can help me?
Situation:
I have a website selling tours with on some pages embedded calendars which all show up as separate pages in Behaviour Report (All Pages).
URI /embeds/calendar/blablabla
I also have book buttons which load embedded pages which I do want to track. Those URI's start with /embeds/book/ and in many of those URI's there's also the word calendar.
So I would like to filter out the pages that match exactly /embeds/calendar/ but I can't figure out how to do that preferably applying it as a filter to the view or otherwise as a segment.*
In the report itself, I figured out an advanced filter that works:
Exclude > Page > Matching RegExp > /embeds/calendar/
*Edit: applying it as a filter to the view or to add this as a segment.
I don't understand the question considering that it contains part of the answer. If you want those pages change the filter from exclude to include.
You can create a segment with user or session level who visited those page path, not those pages alone. For this you have the filter as you have already used.
If you do not want this data to be collected in the view you must enter a filter in the view settings, i.e. Prdefinited Exclude --> traffic to the subdirectories --> Select expression --> ... or Custom Exclude --> Request URI --> .... This change will only apply to today's and future data.

How do I create a Custom report for tracking more than one page in Google Analytics?

I am trying to create a new custom report in Google Analytics for two pages. I do not need the entire site's traffic data. Just traffic received on two pages. The metrics I am trying to track are Page views, Unique Pageviews, Time on Site and Bounce Rate for those two pages.
Here's what I have done so far:
Went to Customization tab, clicked on New Report.
Added Page views, Unique pageviews, Bounce rate and Avg. time on site under Metric groups.
Dimension Drilldowns for Page (is this right?)
In Filters, I have added an Include > Page > Exact > URL of 1st page.
When I try adding another filter for second page like point 4, I see 0s when the report is generated. Have also tried adding the second page URL separated by the '|'. But, it still does not work. What am I doing wrong here? Thank you for your help!
In Filters, I have added an Include > Page > Exact > URL of 1st page.
...
Have also tried adding the second page URL separated by the '|'. But, it still does not work.
For this to work, try switching to: Include > Page > RegEx > URL1|URL2

Google Analytics page view

I'm trying to get the pageview number for the a particular page,
but I see two page view entry
I have:
/page ==> 100 page view
/page/ ==> 50 page view
The two pages are exactly the same page, but why does it have two entries?
Is the GA double counting, so instead of 150 views, I actually only get 100 view?
How do I combine the two entries?
Thank you
You can use a filter to the Google Analytics View to join then.
Go to the Admin section > View column > Filters.
Add Filter > Name it the way you want > Custom > Check "Advanced" option.
Select the field Request URI, in field A put the value "^(/.*)/$".
In field B put "-".
In the Output "$A1", just like the image below.
Hope I've helped you.
Regards,
VĂ­tor Capretz
Good idea for your SEO and Google Analytics is to set-up redirects from page to page/ (or vice versa). I.e. you need to set-up rule for canonical urls: either with slash, or without slash. And stick with the rule.

How to know which pages a single user visited on Google Analytics?

I defined some custom variables to make it possible to identify when a specific user visits my website. So for each user I can see when and how many pages they visited, avg visit duration etc.
Is it possible to know which pages they have visited?
I was able to make it work by going to Content > Site Content > All Pages and adding a custom segment (in Advanced Segments) that allowed me to filter by custom variable (ie, user id in my case). This way it shows all pages viewed by the user I've filtered

Resources