Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
GA4 showing 2 versions of my homepage
-
When my website Custom Made Casino switched from universal analytics to GA, i have noticed that now in the behavior section it is showing 2 versions of my homepage which I feel may be impacting seo.
It is showing the main url which we use for everything, https://custommadecasino.com/ , and it is showing https://custommadecasino.com/index.php?route-common/home. This was never the case with universal.
Does anyone know if this is a problem and if so, how do i fix it so that our proper homepage is what is indexed?
-
@CustomMadeCasino
I think It is due to tracking code -
Certainly! To address the issue of GA4 showing two versions of your homepage, you can follow these steps:
Check for Duplicate Tags:
First, ensure that you haven't added the Google Analytics 4 tracking code twice on your homepage. Duplicate tracking codes can lead to multiple pageviews being recorded.Debug Your Tracking Code:
Use the Google Analytics Debugger tool or browser extensions like Google Tag Assistant to check if the tracking code is firing correctly. This will help you identify any issues with how the code is implemented.Examine Page URLs:
GA4 may treat slight variations in URLs as separate pages. Check if there are any URL parameters or case differences in your homepage URLs that could be causing this.URL Parameters:
If you're using URL parameters for tracking purposes, make sure they are correctly configured in your GA4 settings. GA4 allows you to exclude specific parameters to prevent duplicate tracking.Canonical Tags:
Ensure that your homepage has a canonical tag specifying the preferred version of the page. This can help GA4 consolidate tracking data for similar pages.Filters and Views:
In your GA4 property settings, review any filters or views that might be affecting how data is collected. Make sure you don't have any filters that could be causing duplication.Content Grouping:
If you're using content grouping in GA4, verify that your homepage is assigned to the correct group. Incorrect grouping can lead to multiple entries.Pageview Triggers:
If you're using Google Tag Manager (GTM), check your triggers to ensure they are set up correctly. Incorrect triggers can cause additional pageviews.Events or Virtual Pageviews:
Review any events or virtual pageviews that might be triggering on your homepage. Ensure they are configured as intended.Custom Dimensions and Metrics:
Check if any custom dimensions or metrics are affecting your homepage tracking. Verify that they are configured correctly.Data Stream Configuration:
In your GA4 data stream settings, confirm that the correct domain and subdomain are specified for your website.Real-Time Reports:
Use the Real-Time reports in GA4 to see if both versions of your homepage are actively being tracked. This can help you identify when and how the duplication occurs.By systematically going through these steps, you should be able to pinpoint the cause of the duplicate tracking and take appropriate action to resolve it in your Google Analytics 4 setup.
-
@stefangatti Hi Stefan,
Appreciate your response on this. I will definitely go through this. The staging site was not supposed to be indexed so I will definitely review this and make sure this is not indexed. Thanks for your input, very helpful!
- Adam
-
Hey @CustomMadeCasino,
I shouldn't think this is anything to do with your analytics set-up, but it certainly isn't ideal for SEO. In an ideal world you'd set up a permanent redirect from the non-standard homepage URL to the correct version. You could also add a canonical tag but a permanent redirect is the preferred method.
If you can edit the .htaccess file of your website you can even add a redirect rule using RegEx to catch any URLs, more info here: https://www.semrush.com/blog/301-redirect-htaccess/
On a related note, If you enter this into Google "site:https://custommadecasino.com" you'll see that your staging subdomain is also indexed (https://staging.custommadecasino.com/)
It looks to me like it would be worthwhile conducting a basic technical SEO audit on your website. Have you got Google Search Console set up with this domain? If so, the Indexing > Pages report can help you find issues. If not, I'd recommend doing it ASAP!
Hope that helps!
Cheers,
Stefan
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
The particular page cannot be indexed by Google
Hello, Smart People!
On-Page Optimization | | Viktoriia1805
We need help solving the problem with Google indexing.
All pages of our website are crawled and indexed. All pages, including those mentioned, meet Google requirements and can be indexed. However, only this page is still not indexed.
Robots.txt is not blocking it.
We do not have a tag "nofollow"
We have it in the sitemap file.
We have internal links for this page from indexed pages.
We requested indexing many times, and it is still grey.
The page was established one year ago.
We are open to any suggestions or guidance you may have. What else can we do to expedite the indexing process?1 -
Page Indexing without content
Hello. I have a problem of page indexing without content. I have website in 3 different languages and 2 of the pages are indexing just fine, but one language page (the most important one) is indexing without content. When searching using site: page comes up, but when searching unique keywords for which I should rank 100% nothing comes up. This page was indexing just fine and the problem arose couple of days ago after google update finished. Looking further, the problem is language related and every page in the given language that is newly indexed has this problem, while pages that were last crawled around one week ago are just fine. Has anyone ran into this type of problem?
Technical SEO | | AtuliSulava1 -
GA4 account & property not showing in traffic property setup list.
Hi there, I've connected multiple client accounts to GA4 already, but three of our accounts that we have administrator rights to in GA4 are not showing up in our selectable accounts/properties list when logged in via Moz to add to the traffic settings area. Anyone else have this issue and find a fix?
Reporting & Analytics | | luminusagency0 -
Safety Data Sheet PDFs are Showing Higher in Search Results than Product Pages
I have a client who just launched an updated website that has WooCommerce added to it. The website also has a page of Safety Data Sheets that are PDFs that contain information about some of the products. When we do a Google search for many of the products the Safety Data Sheets show up first in the search results instead of the product pages. Has anyone had this happen and know how to solve the issue?
Technical SEO | | teamodea0 -
Why images are not getting indexed and showing in Google webmaster
Hi, I would like to ask why our website images not indexing in Google. I have shared the following screenshot of the search console. https://www.screencast.com/t/yKoCBT6Q8Upw Last week (Friday 14 Sept 2018) it was showing 23.5K out 31K were submitted and indexed by Google. But now, it is showing only 1K 😞 Can you please let me know why might this happen, why images are not getting indexed and showing in Google webmaster.
Technical SEO | | 21centuryweb0 -
Homepage not indexed - seems to defy explanation
Hey folks Hoping to get some more eyes on a specific problem I am seeing with a clients site. Site: http:www.ukjuicers.com We have checked everything we can think of and the usual suspects here are not present: Canonical URL is in place Site is shown as indexed in search console No Crawl, DNS, Connectivity or server errors No robots.txt blocking - verified in search console No robots meta tags or directives Fetch as Google works Fetch & render works site command returns all other pages info command does not return the homepage homepage is cached and cache has been updated since this issue started: http://webcache.googleusercontent.com/search?q=cache:www.ukjuicers.com homepage is indexed in yahoo and Bing all variations redirect to the www.ukjuicers.com domain (.co.uk, .com, www, sans www etc) The only issue I found after some extensive digging was some issues with the HTTP and HTTPS versions of the site both being available and both specifying the canonical version as themselves. So, http site used canonicals with http and https site used canonicals with https. So, a conflict there with the canonical exacerbating the problem it is there to solve. The HTTPS site is not indexed though and we have set this up in webmaster tools and now the web developer has set redirects to ensure all versions even the https now 301 redirect to the http://www.ukjuicers.com page so these canonical issues have been ironed out. But... it's still not indexing the homepage. The practical implications of this are quite scary - the site used to be somewhere between 1st and 4th for keywords like 'juicers', 'juicer' etc. Now they are bottom of page 1 or top of page 2 with an internal page. They were jostling with the big boys (amazon, argos, john lewis etc) but now they are right at the bottom of the second page. It's a strange one - i have seen all manor of technical problems over the years but this one seems to defy sensible explanation. The next step is to do a full technical SEO audit of the site but I am always of the opinion that with many eyes all bugs are shallow so if anyone has any input or experience with odd indexation problems like this would love to get your input. Cheers
Technical SEO | | Marcus_Miller
Marcus0 -
Why are these internal pages not showing any internal links?
If you look at Author profile pages like this one, http://experts.allbusiness.com/author/denise-oberry (THE top contributor on the site with over 82 posts under her belt), or any Author profile page, they show zero internal links or Page Authority. The same goes for most posts for each author on the site. Author pages should show internal links from every post the author has on the site. And specific posts should also have internal links from categories, etc. Yet they show zero. The only posts that show internal links and PA are ones that were either syndicated to the root domain's homepage, or syndicated to Fox Small Business. ZERO internal links. Does anyone know why this is? The root domain does not act this way with Author pages and posts. And I see nothing blocking links or indexing via the robots.txt file or page level nofollow tags. A real head scratcher for this SEO nerd, that I'm sure someone here will have a really simple answer to.
Technical SEO | | MiguelSalcido0 -
Google Showing Multiple Listings For Same Site?
I've been optimizing a small static HTML site and have been working to increase the keyword rankings, yet have always ranked #1 for the company name. But, I've now noticed the company name is taking more than just the first position - the site is now appearing in 1st, 2nd, and 3rd position (each position referencing a different page of the site). Great.. who doesn't want to dominate a page of Google! ..But it looks kind of untidy and not usually how links from the same site are displayed. Is this normal? I'm used to seeing results from the same site grouped under the primary result, but not like this. any info appreciated 🙂
Technical SEO | | GregDixson0