Google Analytics exclude exact part of url - google-analytics

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.

Related

Analytics GA4 multiples filter on report

I have a problem with the filters at the level of Google Analytics which do not work, I explain myself, I try to put two filters on my report, the first is that all the pages with the name "menu-droite" must be excluded in addition to the homepage /home/
I manage to put the first filter on the name "menu-droite" but then when I want to select the second variable for the pages, I have nothing :
second filter page didn't find
I can do this another way by selecting all the pages to exclude which brings me back to a single filter but I would have to select some 100 pages and new pages under "menu-droite" are often published which won't change anything to problems

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.

Google Analytics Real-time overview shows a page that doesn't exist

I don't understand this. How can this happen?
I have an educational site and when I looked at Google Analytics I saw a porn page in active page which doesn't exist on my site.
What is this and how can I stop this from happening?
I checked for that page on my website and there is no such page.
This is not actually a hit for a Page on your website, it is rather a Referral (i.e. the source from which a user was supposedly coming from before landing on your site): https://support.google.com/analytics/answer/2795830?hl=en
It is actually spam generated by bots and crawlers, and you can follow the steps listed in this article to mitigate this issue: http://moz.com/blog/how-to-stop-spam-bots-from-ruining-your-analytics-referral-data
For the most common sources of Referral Spam, you might want to add an Exclude Filter to simply ignore those hits:
To filter out a referring source from your reports, create the following filter:
Filter Type: Custom Filter > Exclude
Filter Field: Campaign Source
Filter Pattern: Enter the domain of the referring source that you would like to exclude, for example, google.com. You can use regular expressions if you would like to exclude several referring sources.
If you are wondering about the "Active Page" view listing a spammy-looking URL, it is because that page most likely is a 404 page your website serves in response to the request.
Note that the URL also begins with a slash delimiter ("/"), as in yourwebsite.com/www.spammy-site.com -- this will show up in Analytics as /www.spammy-site.com, as in the examples above.
This is Ghost Referrer Spam, and it shows as both pages and/or referrals(you can see it in the screenshot bellow). This "visits" never reach your website actually. The only thing you should worry about is your data since it affects your statistics by adding useless data to your Google Analytics.
The only way to stop them for now is by filtering them in Google Analytics as #Philippe mention you can add a single filter or you can use a more general approach with a filter based on Valid Hostnames that will stop this and most of the Referrer Spam.
Basically, this works by excluding all hits that don't have any of your valid hostnames since the spammers don't know who are they targeting they use a fake or empty hostname as you can see in the screenshots
Here is more information about this solution and others https://stackoverflow.com/a/28354319/3197362
1 In Google Analytics, go to the Admin tab.
2 Go to View Column and select Filters.
3 Click on New Filter.
4 Put Spam Porn Referrals as a name for the Filter.
5 Filter Type select Custom. Filter Field, find and select Campaign
Source. In the Filter Pattern text box, copy and paste this Regular
Expression.
depositfiles-porn.ga|youporn-forum.ga|pornhub-forum.ga|generalporn.org|rapidgator-porn.ga|meendo-free-traffic.ga|amanda-porn.ga|torture.ml|pornhub-forum.uni.me
6 Click Save.
You can check this link also. I have seen the same problem and now i am done with this.
Stop Spam or adult site referrals in google analytics

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

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.

Duplicate domain tracking on Google Analytics issue

We've accidentally placed the same Google Analytics tracking code on two different domains.
www.y.com
www.x.com
We've rectified the issue now but retrospectively, is there any way to filter that data going to the specific domain name www.x.com for example?
Note: this is not a duplicate of Google Analytics: Track two domains as one
You could add a filter to the view (profile) in question. That will remove the data that you don't want. Another option if you don't want to loose the data in the view would be to create a custom segment that you could use when ever you want to split the data out.
Update from Google+
You can search with regex
^/app/
in the small search bar (custom segment) in your page reports (e.g. Behavior -> Site Content -> All Pages), after which you can look at the aggregate metrics for all pages which start with /app/ (i.e. all the pages with different parameters).
If all the /app/.* have the same page title, you can look at the Behavior > Overview report, but choose Page Title as the dimension.

Resources