Creating custom segment by subtracting one segment from another - google-analytics

Is it possible to create a custom segment which is based on 2 other segments? I have a custom segment ("Segment A") with visitors that performed a certain action. I would like to see stats for all visitors that DIDN'T perform this action. So ideally, my custom segment would be:
All Visitors - Segment A = New Segment
Is this possible?

In general no, you cannot combine segments (no deeper reason, it's just not a function that is not implemented possibly due to the large processing overhead nested segments would incur).
For your particular case still no, but for another reason: "All Visitors" comprises the whole of the data. If you create a segment you remove a part of the data. So "Substracting a group from All Visitors" actually describes the process of creating a new segment in general.
As per my comment you could remove the part of sessions or visitors that do not have a special action by creating a segment where (condition) "does not contain" (action) or "does not match regex" for (action). This would effectively remove those visitors from the "All Visitors" segment.

Related

How to track users on segment overlap in GA4 📊

I create a segment overlap report and I want to track the behavior changes of the “new users only” segment over time.
My question is: How to track these specific segment behavior throughout time? ❓
because these “new user only” segment will be excluded from the segment since they are not “New User” Anymore and not following the conditions in create segment. 🙁
I tried to create an audience and it was wrong & wasn't helpful because they are not following the condition and I want to track historically ( old date ) and creating audience will still start collecting data.

Google Analytics segment to exclude source not working, though reverse does

Trying to create a simple segment to excludes a referral source retrospectively (a spam site called trafficbot.link) from all analytics views.
I can:
…set Traffic Sources > Source > contains / starts with / exactly matches, and it will correctly show ONLY the spam/fake accesses (the percentage of users and sessions on the right is refreshed in real time).
I can't:
…do it the other way around, i.e. use does not contain / does not exactly match / is not one of.
The total stays stuck on 100% of sessions.
Am I missing something obvious?
I note this answer which has no input other than from the original questioner, suggesting Google say it's "not possible" to exclude existing requests - surely it is? Isn't that the whole point of segments? How are you supposed to filter out spam otherwise?
(I'm aware analytics filters isn't retrospective.)
You are talking about segments but the link you entered refers to filters.
Anyway, retroactively you can apply a segment to see the data without the spam one, you can use an advanced segment, choose conditions and exclude sessions that contain for example browser size equal to (not set).
https://www.fortop.it/journal/tieni-lontano-lo-spam-dai-dati-google-analytics/

How Sessions are calculated when applying Advanced Segment

Suppose i have a product home page for eg http://domain.com/products/sonymobile.com and i need to find people who have visited the above product page in an session.
So when i apply an Advanced segment including page as above. The tricky part is how the sessions are calculated?
a) Does google count only the sessions wherein the session starts from "http://domain.com/products/sonymobile.com"
OR
b) the page can come anywhere in the whole session.
[Advanced Segment Image]
It depends on how you build your segment. If its scope is session, the answer is b). It seems that you are confused about an issue like https://support.google.com/analytics/answer/2934985?hl=en , but it's not about segments.

Can I filter a Google Analytics segment based on content grouping pageview count?

I want to create a Google Analytics segment for our users who view at least a certain number of pages on our site. From what I can tell (please correct me if I'm wrong) this is easy to do if you don't care about what kind of page they view: you create a filter for the segment that checks to see if Unique Pageviews is greater than some value such as 4. However our site has a whole bunch of pages that I don't really care if someone reads (our "about page" for example). So what I'm trying to do is create a segment of how many people view at least X pages of what we call "Learning Content" (basically two specific page types on our site). How can I segment the users who read a certain amount of learning content?
Two types of pages fit into our definition of learning content. The first one has a URL matching a regex that sort of looks like /learning_content_1/.* and the second matches regex /learning_content_2/.*. I've already created a content group for learning content that correctly identifies these two content groups. However I wasn't able to find any way to filter a segment based on how many unique pageviews (or even just pageviews) come from a specific content grouping. Is this even possible? If not, how might I work around that?
The research I've done so far: Google Analytics: How to segment by many groups of pages was somewhat helpful but didn't address the question of how to create an actual GA segment based on pageview information for a content grouping or content group.
The only way I can think of handling this, is by associating a specific custom event that gets triggered on this page. Then you can create a segment that matches users who have that event category:
and total events greater than 4:
It's a workaround, and it doesn't work if you are tracking other events, but maybe that works for you?

Grouping visits by a number ID

I want to group visits by certain id number because every id represents a different client (think of a subdomain or something like that), for example:
http://site.com/234/home
http://site.com/234/search/something
are URL's for client 234, while...
http://site.com/155/home
http://site.com/155/search/something
are URL's for client 155.
I'm a total noob on this, thx!
Well one way permanent way to do this that that doesn't require you to change the tracking code in your markup is Advanced Segments.
Advantages of this technique in your case:
You can create each segment and given
them descriptive names (e.g., client
id);
Unlike, for instance, using an
Advanced Filter, the Advanced
Segments are active immediately (as
soon as you create them) and they
don't permanently alter your data.
Advanced Segments are simple to configure. This Post by the GA Team is an excellent step-by-step guide, or you can follow these two consecutive screen shots below:
Step 1: click Advanced Segments in the upper right-hand corner from the Dashboard view then click Create a new advanced segment when you see the view below:
There are a number of ways to configure your Advanced Segment; here i've chosen the Page Dimension from Content then selected Condition Contains then just key in a value for a path that distinguishes each client ID.
No exactly what you asked, but you can go to:
Content
Content Drilldown
See the aggregated unique pageviews and other info for each client /id/

Resources