Google Analytics - Grouping URL according to query paramters - regex

I am running a campaign and all partner traffic going through a landing page.
However, this page url is dynamic according to various parameters... so my GA reports show hundreds of lines.
I know I can filter the parameters out... but I would like to extract the data per partner.
Here is an example of the dynamic urls :
/landing-page/?ref=partner01&id=value1&email=value2&param=value3
I want to clean the urls but leaving the first parameter "ref" in the report.
I tried ref=([^&]*) but it is not working.
Then GA should group urls (I guess) and I can see a report with data sorted per partner.

you may use 'Exclude URL Query Parameters' in a view settings and put there a list of all the unwanted parameters like id,email,param
Having ref out of the list will keep it in page path.
More on Help pages

Related

Google Analytics - Match URLs on Unique Number in Content Drilldown Using RegEx?

I am trying to track pageviews on Google Analytics for knowledge base articles (on Zendesk).
Each article has a unique number. However, the title of the page is sometimes appended to the URL, and GA tracks this as a separate page. If the title of the article changes, it generates a new URL.
For example, these would all be the same article, so I want to see a single pageviews count, but GA would show as 3 separate stats
/hc/en-us/articles/360039413394
/hc/en-us/articles/360039413394-How-To-Make-A-Sandwich
/hc/en-us/articles/360039413394-How-To-Make-A-Turkey-Sandwich
I want GA to roll up the articles matching on the unique number, and ignoring everything after that. Is there a built-in way to do this? Is there a way to do this with Regex? Where would I add the Regex for the Content Drilldown page? Help!
Thank you.
Analytics cannot know in an integrated way which part of the URL interests you or which distinguishes one page from another.
What you should do is understand when in your system the page title is appended to the URL and avoid it.
For future data you can try to clean the data with a regex before it arrives in Analytics, for example with GTM, but this could compromise the other URL cases that need to be handled differently.
In general, if in the Analytics reports you filter the URLs for an identifier, for example 360039413394, in the first row of the report you can see the aggregated values of all the URLs that contain that string. So if you need to verify a particular product page you can use this workaround when viewing data.

Unable to make Google Analytics filter work

I wish to create a custom filter on Google Analytics (GA), that would allow me to block all views except the genuine ones onto my webpage.
I want to do this because the google-analytics ID associated with my property (UA-XXXXXXXX-X) is public. Hence in theory, my analytics data is open to attack.
I was trying to follow the instructions here. As suggested I created a custom filter to exclude any hits from Hostnames other than my webpage (or any sub-webpages) - https://ishank-juneja.github.io/. In particular the steps I followed were -
New filter --> custom --> include --> Choose filter field as Hostname
Then I entered the filter pattern as https://ishank-juneja\.github\.io/. Which I believe is the correct regex corresponding to my site URL/Hostname.
I thought this would be enough to make the filter work, however to be sure, I changed the filter type to exclude instead of include, expecting that if the configuration is correct this filter would start rejecting hits from the url https://ishank-juneja.github.io/ and any of its sub-pages.
However when I clicked the filter verification button available at the bottom of the create-filter page, I received the message-
"This filter would not have changed your data. Either the filter configuration is incorrect, or the set of sampled data is too small."
Since I am certain that all my earlier hits were from the mentioned url, it seems that the filter is not configured correctly even in the include mode.
Any help in correcting the working of the filter, so that only hits from the desired Hostname are recorded, would be appreciated.
Try to use this regex for hostname (without protocol and trailing slash):
ishank-juneja\.github\.io

Privacy of search results between site collections

Currently SharePoint allows one site collection to configure search results of search center in such way to access the indexed results of other site collections.
Is it possible to disallow other site collections to view the crawled data of a specific site collection ?
For example: If one site collection admins configures his search results, I don't want him to be able to access the search results from my own site collection.
Thanks
SharePoint Search results are security trimmed so the best solution I would suggest is breaking permission of your site(limit permission for other site collection admins for your site).
https://collab365.community/how-to-security-trim-search-results-in-sharepoint-2013/
One possible solution would be customizing display template(to check search result items URL, if url belongs to specific site collection, hide it, while this is site collection level means you need customize display template in target site collection which you want to hide the content).
https://www.c-sharpcorner.com/article/steps-to-create-custom-display-templates-in-sharepoint-2013/

Best way to track campaign transactions in Google Analytics

We have just begun trying two price comparison websites that are using different source, medium and campaign values in Google Analytics.
I want to try to track sales from these to the product and notice that in Analytic Goals they are fine for setting up a goal that would end in our transaction confirmation url but need to have a funnel url that ends with, for example below
utm_source=pricerunner&utm_medium=cpc&utm_campaign=pricerunner
Anybody have any idea how to do this using the end of a url? All I can see if GA is the entire url value or "begins wih"
I have tried using regex but nothing is being tracked
The campaign parameters needs to be passed in the url from the price comparison website to landing page (probably a product page at your end). At that point the GA session gets automatically associated with the utm parameters, and you do not track those url parameters subsequently in your funnel.
If you want to see the funnel for a specific pricce comparison website you can use a GA segment to isolate the goal traffic based on the campaign name. that should do the trick

Google Analytics in footer file

I have a question about how Google Analytics tracks pages in a Wordpress site or any other site that uses a template file to include the code for Google Analytics in the footer or header. Since the file is generated and used in all the pages, that would mean that the analytics code is counting all the pages that are viewed correct? Also, is it possible to view what pages are getting hits and have a more detailed report in Google Analytics? I just have a feeling that the page i'm tracking is displaying inaccurate reports since the same code is used on every page. Can anyone help clear this up and educate me a bit on this topic?
The code is always the same, it loads in the footer so you dont have to put it on every single page.
in the code there is a unique code for your website so analytics knows wich analytics account needs to get the information.
The code dosn't need to be changed everypage.
You can see the pageviews like this:
-->google analytics
--->contents
-->Site content
-->all pages
Now you get a list with urls and the page view for every url
You can sort the list by pageviews (how many times is the page loaded) and unique page views(How many uniqe ip addresses have visited the page.).
You can also find bounce rate wich shows how many % of the users left you site on that page.