Still getting data on Google Analytics after changing domain - wordpress

it's a weird question.
Here is a wordpress website whose original url is https://funXXX.com
I made a new website for displaying products which use the url https://funXXX.com
And the original web is changed to be a store web and change its new url is https://store.funXXX.com
A weird thing happened,
The dashboard is still showing infomation... and track the traffic of https://store.funXXX.com
There is also conversion rate.
However, in the setting page of GA, the url is still the old one https://funXXX.com
How I set GA for my new website?
I know the whole thing is really weird, I will keep editting and replying if someone is helping me. Thanks!

The URL you enter in the view settings has no influence on the data collected in Analytics (it is only used to preview pages, but on a practical level it has no impact).
If you want to limit the data to a specific domain you need to apply a filter based hostname to the view.

Related

Making Sure my Google Analytics Views are Set Up Properly

I have a Google Analytics property for our University's main website - www.williamwoods.edu - and I am trying to set up a view for one of our subdomains.
We have one set up already for our News site - news.williamwoods.edu. This new one is going to be for our University President's personal blog - presidents-corner-blog.williamwoods.edu.
I've mimicked the setup for the News site for the Blog site, since the numbers for that site seem fine. It has our regular GA tracking code set on it and had the view set up in GA. I'm guessing that this is because we consider it a Property of the main williamwoods.edu domain.
The problem, though, is that the President's Corner Blog view doesn't seem to be reflecting specifically pages on the presidents-corner-blog.williamwoods.edu subdomain. If I go to Behavior, Site Content, All Pages while under this view, I can see URLs that reflect the structure of the main williamwoods.edu domain.
Am I using Views correctly? Should I set them up differently? Or, might it just take some time for the View to reflect the specific Subdomain associated with it? If it can be of use, here is how I have my views set up:
Any suggestions on how best to set up GA so that I can track traffic on the different subdomains would be greatly appreciated. :)
Thanks!

Google Analytics not tracking Google Ads and UTMs clicks correctly

I've identified a discrepancy between Google Ads clicks and Analytics sessions in Paid Search (about twice more clicks than sessions). So I contacted Google Ads support and after a long conversation, they send me an email saying that my website structure uses redirections and it's making it lose parameters, and that I had to contact a developer to solve that problem because they don't give assistance on it. What exactly they told me to tell the developer was that:
Loss of parameters by redirection
The website trendotrends.com is not holding navigation parameters
because of the structure in which it was developed.
To verify this redirection, simply replicate the following steps: I
accessed the link
https://trendotrends.com/products/running-shoes?variant=15320930779194
After full site loading, I added the & gclid = Tester123 parameter to
the URL (in the browser, so the final URL was
https://trendotrends.com/products/running-shoes?variant=15320930779194&gclid=Tester123)
and hit Enter To understand if there is a redirect, the normal
behavior would be for the URL to remain the same (with & gclid =
Tester123 at the end), but in this case, the parameter disappears (and
hence the assignment) This link was just an example, which can be
verified in several other products of the site.
They also said I can't use manual tagging (UTMs) instead of automatic tagging in Google Ads because those redirections are also going to spoil the UTMs.
I don't use any redirections in my website and I have also tested with UTMs and there's also a discrepancy in google analytics data for that.
But before I contact a developer and invest on this fix, I would like to know if anyone had experienced that? If Googles answer fits this problem? And even if is there a way to fix it without being an expert.
Thanks in advance.
The issue here isn't really that there's a redirect (301), but a state change. There is javascript on the page that essentially rewrites the URL before the GA code can parse it.
Are you able to change to a different theme and test if this happens with that theme?

I'm unable to run experiments accross subdomains using Universal Analytics

I'm currently running an experiment without redirect, using Google Analytics, but I'm running in some issues.
The case
I work for a company that has two websites, with two separate brands, selling the same product. Today, we are plaining a merge of the brands, one of the reasons being the low costs of maintanance.
To see how this would affect sales, we are doing an a/b test. The test consists of changing the logo of the sites, and displaying an information about the merge of brands in the variant. The original is the website without changes.
We have some requirements to do it:
We use a CMS that has no support to the Google Analytics Experiment tag (we get some errors when we install it to the , and are unable to run it)
We need to run it through all pages of our websites. We have also a subdomain in each site, that the user is redirected to place an order.
We doesn't have time to wait for the experiment to end for itself. So, we came up with the idea to track the rejection and sales using a duplicate pageview with "/variant" in the url and in the title.
To do that, I used the Content Experiments without redirects, with the Google Tag Manager.
Configuration of the Experiment
In Google Tag Manager, I load the Content Experiment Javascript API and define the choosenVariation variable in all pages of both websites and subdirectories.
I track the "gtm.load" event, to see when the page finished loading all elements and change the DOM in three ways: changing the logo, adding the content about the merge and add an item to the main menu. All of this, through Javascript.
Along with the changes of the DOM, I add a datalayer called VirtualPageView, and pass the corresponding url with "/variant" and the title with "Variant".
When the datalayer fires, I send a new Pageview with the variant information.
The problem
The experiment is running right, but when a user gets the B variant of the experiment and procceed to a subdomain of our websites to place an order, it seems that it's somehow running another test, and happens to the user get the A variation.
We are trying to persist the original session and the client Id through the domain and subdomain, in order to the user that saw the different logo, continue in his way to order.
I saw this page about Running Experiments across Subdomains, but its about the Classic Analytics and the classic experiment, and we are using the Universal Analytics with the Content Experiment without redirects.
I don't know if my explanation was clear enough, so if someone have doubts, please ask me. I don't have a profound knowledge of Google Analytics or the Content Experiments either. So, if you have a better way to do this, please, tell me.
I came up with a solution to our problem. We agreed to use the experiment only in the pages of the main domain, so I can change the content otherwise in the pages of the subdomain:
When a user visits our main domain, through Google Tag Manager, I created a cookie that says what the result of the variation chosen for the user (0 for the original and 1 for the variation).
When this user goes to our subdomain to place an order, still via GTM I check the cookie to see its value. If its equal to 1 (a variation), I change the logo and the menu, according to our previous configuration, and I send a virtual pageview to help us check the data.
Until now, this is working properly.

Google analytics showing hundreds of views for page that doesn't exist

I recently signed up for a google analytics account in anticipation of a new site I'm putting together. The site has not been published, and the tracking script has not been put in the code yet.
Somehow after logging back in to grab the tracking code, it's showing I've already had 275 views in the past month. How is this possible???
These are very likely ghost referrals sent by spammers targeting random GA property IDs (which explains why you see them even before your Web site is live). Since you are setting up a new site, probably the easiest way to get rid of them is to create a new Web property so that you get an ID not ending with -1. The reason is that this type of spam is only targeted at the first property in an account.
If you want to get more information about how referrer spam works and alternative solutions to eliminate it, here is an article I wrote some time ago:
http://veithen.github.io/2015/01/21/referrer-spam.html

Tracking email clicks with tagged links (could be google analytics or custom)

I'm trying to track a series of emails and where users are clicking. I really only have google analytics to work with. I'm attempting to use google analytics to tag my links but all I'm getting is the campaign, all the other tags are coming up (not set).
example of the links I am using:
http://www.example.com/en/secured/rewards?entity_id=<%~user%>&pw=<%~pw%>&utm_source=confirmEmail1&utm_medium=email&utm_content=button1&utm_campaign=ssconfirmEmail1
This part of the link HAS to be there.
http://www.example.com/en/secured/rewards?entity_id=<%~user%>&pw=<%~pw%>
I believe something with the entity_id and pw tags are creating a conflict with google's tags. Currently I'm testing weather doing this to the link will work or not.
http://www.example.com/en/secured/rewards?utm_source=confirmEmail1&utm_medium=email&utm_content=button1&utm_campaign=ssconfirmEmail1&entity_id=<%~user%>&pw=<%~pw%>
My question is, first: Does anyone know a reason why this would be happening?
second (forget google analytics and do something custom): I know I could track the link by creating a redirect through a page and then having it redirect to the correct url, but I'm too new at this to know if I can carry the entity_id and pw through the redirect. If so, how?
Thanks!
Since the link was picking up everything but the content, I just eliminated that and changed the source to what I was using in the content. It's working now
http://www.example.com/en/secured/rewards?entity_id=<%~user%>&pw=<%~pw%>&utm_source=button1&utm_medium=email&utm_campaign=ssconfirmEmail1

Resources