How to remove a page from google analytics UI? - google-analytics

I mistakenly used google analytics code of another website and now, in another site's google analytics report, it shows wrong URLs (because it is of my new website's),
How can I remove those URLs/Pages from google analytics' account.
Example,
I have abc.com website's google analytics code and I mistakenly used it in def.com's website.
There is a URL on def.com/new-year and it shows on abc.com's google analytics on Acquisition => All Traffic => Channels,
Is there any way I can remove the record from google's generated table ?

You have the following options:
Use the time selector and set it to a date after the wrong tracking code was removed.
Use the hostname secondary dimension in the report and thus remove all traffic to the wrong hostname.
Duplicate the view and then delete it. But you will lose all the data so this is rather drastic.

Related

How to create a Google Analytics report on a specific query string?

I have hunted around a bit and only found how to setup the site search parameter in a site's admin section. This is not what I want. Also looked through some Google Search Console videos - no go.
Given a URL, https://somesite.com/redirect/?redirect=https://gofundme.com/somecampaign/.
As some background, what I have setup here is a simple page that says "Loading..." and is used for external links I want to track analytics on, from platforms that I may not have access to the link's analytics. For example: https://gofundme.com/somecampaign.
Rather than having a redirect setup on the page itself, I injected custom JavaScript through Google Tag Manager that records analytics data in Google Universal Analytics (anyone want to recommend how to do this in G4A?) then performs the redirect.
My question is, in Google Analytics, how do I setup a custom report where the query string parameter = redirect and/or the specific page URL?
Thanks.

Google Analytics - Custom Dimensions sent to wrong website's google analytics

I have two google analytic views setup like below:
Website's URL: abc-x1.test.com
Website's URL: abc-x2.test.com
image
The urls are different by subdomains and they are separate web applications.
I added ga tags, ga('create', 'UA-XXXXX-Y', 'auto'), in both web applications and every time a button is clicked it sends some custom dimensions.
The problem that I'm having is even though I clicked the button in the first website (abc-x1), it sends dimension information to both websites' google analytics. (or not sure if it's sending it to both but I can see the dimensions coming in in both views when I do query).
How can I send custom dimensions to the website where I clicked the button but not to the other one?
You have to add a filter based on domain for each views. The website entered in you screenshot is not used to distinguish the site data, it has another function in reports but has no impact on the data.

Google analytics - allowed hosts

I'm seeing entries in my analytics data for pages that no longer exist.
This could be developers looking at legacy versions of a site, it could also be triggered by something like wayback machine.
Is there a way to either identify what hosts an analytics tracking pixel is being triggered on, or restrict analytics to only execute on either a set of domains/hosts or ip address
LinkedIn campaign manager and Hubspot have features where you can tell the tracking script what domains to include/exclude
This is different from excluding ip addresses when setting up filters
Thanks
you can use filters on view level (Universal Analytics, not GA4) in order to exclude or include specified domains to ga data. Keep in mind, adding or removing filters work for new collected data only. Maybe add an additional view, so one view contains all data (based on your ga setup). With this solution GA collects data but will not show the data in the filtered view.
In order to fire the ga tag on a specified domain, specify the host in the trigger in Google Tag Manager, if it is implemented on page. This setting the tag will not be fired on other domains.
If there is no Tag Management on the page, you can check the domain using js before firing the ga script.
Keep in mind, that it is possible to send data to GA without fireing the GA tag by using Measurement Protocol. So if a lot of spam data appears in the interface, may add additional filters to exclude this data aswell.

Google Analytics with Google Tag Manager not reporting properly on subdomains

I have a site with 3 subdomains with the same Google Tag Manager and Google Analytics tracking ID. I created 3 views on the property, I applied the proper inclusion filters so I can focus each view on its counterpart subdomain.
GTM is firing GA on the three subdomains and the GA debugger is showing that it is tracking (I tried recording and it worked, I tried GA plugin and there are no errors).
The problem: One of the subdomains is reporting everything (all subdomains)! Even with the proper inclusion filter in place. The 2 other subdomains are reporting nothing.
Note that my inclusion filter is equal sub1.example.com (and the same view is reporting on sub2.example.com and sub3.example.com)
I spent 6 hours so far, reading documentation and trying different options to no avail.
Why would be a filtered view for one subdomain show stats for the other subdomains? Why would the other subdomains show nothing? Would this be related somehow to GTM?
GTM id is the same across the domains and not duplicated and matches the account number
GA snippet is not included on the pages and the id is double checked
The three subdomain settings are exactly the same with only the inclusion filter being different
Make sure that you disable UserId Tracking when you create a View.
Enabling UserId Tracking will exclude all analytics without it being set.

Can I use Google Tag Manager to collect analytics from mulitple domains?

The set-up:
1 site, 2 domains: = mysite.com and mysite.co.uk
These 2 domains use DNS to point to the same site (IP).
There is 1 snippet of Google Tag Manager (GTM) code just after the opening <body> tag of the site (every page).
In the GTM container, I have added both domains on the "Container Settings" page.
There is one Google Analytics (GA) account which only contains the .co.uk domain. (An analytics account can only contain 1 domain.)
A tag has been set up in GTM with the type of Google Analytics and it has the UA code from the 1 GA account added.
A rule has been added to fire on all pages
Now, I don't care whether someone visits via .com or .co.uk, but I want to capture combined analytics for both. My questions is, with the way I've set things up using GTM, will GA save data for both domains ie mysite.com and mysite.co.uk, or do I need to set things up another way to achieve this? Ideally, I don't want to go down the forwarding route i.e. forward all traffic from .com to .co.uk.
First a bit of pedantry: Google Tag Manager cannot even collect informatiom from a single domain (it's not a tracking tool). And while you can only enter one domain in Google Analytics that domain setting serves no actual purpose; a Google Analytics account can track multiple domains in different "properties" (porperties are sections in an account that each have a unique id) or in a single property via cross domain tracking. Cross Domain tracking is used if you want to treat multiple domains as a single presence on the web (i.e. if you have a website and a shop with different domains, they still belong together).
Now, the way you have set things up data will be collected from both domains. There are at least two caveats:
1) If users can switch between domains inside a session (go from .com to .co.uk and back) their sessions will be interrupted and Google Analytics will register multiple visitors (that's because users are tracked via cookies which are domain specific). To avoid that you'd need to set up cross domain tracking (and how you would do that depends on if you are using Universal Analytics or asynchronous code. Look at your tracking code, if it contains a line that starts "ga("send"...." your are using analytics. If it contains lines that start with _gaq.push you use asynchronous code).
Cross domain tracking documentation for UNiversal Analytics (analytics.js)
Cross domain tracking for asynchronous code (ga.js)
2) By default Google Analytics tracks only the path, not the domain. If pages on both domains have the same path they will be displayed in aggregated form in the reports, that is if you have an index.php on both pages the visits for both will be added up. Maybe that's just fine with you, if they show the same content in any case. Else you'd either have to use "hostname" as a second dimension (which is not a sticky setting, you would need to re-apply that every time you switch to another report), or you create a filter on your view that includes the hostname in the reports.
Those caveats are relevant because data will show up in any case and will look perfectly okay even if it's not (even if you decide that those two things do not bother you you need to take them into account when you interpret the data).

Resources