Merge links on Google Analytics - google-analytics

I have started a Fb campaigns and I need to track the clicks on link on Google Analytics.
The problem I have is that the page link came on GA with different expressions after the normal URL, so they are collected in different rows instead of in a single one.
I will make you an example.
I need to track this link:
/es/el-folleto-de-los-vinos-italianos-con-denominacion-de-origen-2020
But everytime a person is clicking on it from Fb ads, the link appears in a different way on GA, such as:
/es/el-folleto-de-los-vinos-italianos-con-denominacion-de-origen-2020/?fbclid=IwAR2Uc9rSNA7RxYU4wdSrtJrvpVS8SS6TrsMD7KEXOmJm7-PczRtN2CV2UUQ
or
/es/el-folleto-de-los-vinos-italianos-con-denominacion-de-origen-2020/?fbclid=IwAR0OIQhQ-szHlm5BcSQU14UPMIri8HSSV4ws2uowtlvuW8qI7AQA_RWB0jU
Result?
I have 6000 rows for clicks on the same page.
How can I merge all those links (that create different rows) in only one row that is for all the clicks referring to the same page?

If they have been collected in this way in Analytics you can no longer merge them.
However you can filter by the page path and see the result in the first row which represents the aggregate summary of all the individual offending pages.
Also, from the View settings you can exclude the fbclid parameter so that Analytics excludes it from the URLs and in the next reports (from then on) you will see the pages all together on the same row.

Related

how to make a segment for matching in google analytic?

I want to get the most viewed pages in my webiste for a specific section. I am using filtering in Google Analytic to get the data but I need to make segments. In the screenshot you can see, that in the search fill I am searching for /health consumers/ in the reports and I got the result that I want but I don't know how to save it and use it again. I tried but I am not professional with Google Analytics.
Result I want
With the use of segment
The (first) dimension you are filtering in the first screenshot is Page.
You have to use it: Filter Sessions Include Page contains /health_consumers/ in segment creation window you posted in the second screenshot.
Like this:

Sub-Directories Tracking In Google Analytics

I would like to created a master view in Google Analytics that treats sub-directories page visits as one, not as two separate entries in the reports.
so instead of:
/us/brands
/gb/brands
Just shows total visits for /brands?
What is the best approach for this?
Thanks
The easiest way would be probably to have an advanced filter that swaps the elements of your page path around - i.e. you turn /us/brands/ into "/brands/us". Then you can use a second filter to include only the "/brand" subdirectory into your view, and you get aggregated numbers.
A (perhaps better) alternative would be to create a content grouping that includes your brand pages and then look at the pageviews/visit for that content grouping.

How to create a Google Analytics report of one metric as a function of another?

I want to set up a Google Analytics timeline report of one metric as a function of another. Example scenario:
The user does something on page #1. On that page there is dynamically generated content, e.g. an image banner with different text.
The user interacts with that content which generates event hits with different labels (A, B, C... dynamically generated based on the dynamic content on the page).
The event hits with their labels are sent via POST to Google Analytics using the measurement protocol.
The user does (or does not) visit page #2
I want to be able to measure the efficiency of each event label defined as:
Efficiency = (Number of users visited page #2) / (number of hits for event label)
Ideally this should be able to give me an idea which are the most efficient event labels for:
particular hour of the day
particular day of the week
particular months of the year
Looking at the goal funnels it seems possible to define only funnels based on a sequence of page views, not as a function of event labels (not talking about dynamic ones at all). It also seems not possible to set it up as a content experiment because the labels are dynamic and everything should be measured long term, new labels can be added, older ones can be removed/restored etc.
Is that possible to do what I am looking for with Google Analytics?
Adding a Custom Dimension should resolve the problem. Here are the steps using Google Tag manager (GTM):
Add a custom dimension say BannerName in Google Analytics (GA)
Define variables in GTM say BannerText and BannerClick (Depending on
your page markup, css selector rules may have to be applied)
Pass BannerText value in custom dimension BannerName, it will provide
you pageviews and all GA data as you have for any dimension.
To capture clicks:
Set up a trigger that filters clicks only on specific element in
question
Pass captured values (Click text) in dimension BannerClick
Basically you will have pageview (visit) data and event (click) data collected in GA and can process it the way you want.
BannerClick variable is optional if you are able to capture banner clicks using existing click variables {click element, click text, click url}. In that case, you can just filter in reports based.
You may use calculated metric directly to further simplify calculation if you want as suggested by Jacek.

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?

Google Analytics - Don't view as unique pages

I have a url similar to this
/widgets/view/13031800
In the google analytics settings you can have it exclude url paramaters, but I can't figure out how to have it look at all
/widgets/view/ pages as one page. I don't need each one to be unique.
Any ideas?
Unfortunately there is not an easy answer to this. You can...
change what is passed in your _trackPageview calls on your page(s) to exclude the number
create a filter in the interface to strip off the number
Neither one of these solutions will retroactively apply (will not change data you already got).
Only way to see it for current data is to export your data to excel or whatever and do some manual work on it, like strip off the numbers and sum up the page views and remove duplicates sort of thing.

Resources