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
-
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 -
What should I name my Wordpress homepage?
I work almost exclusively in wordpress now. And I always hesitate when it comes to naming a site's homepage. I have to give it a name - right? I usually pick the business name or /home. And then that is identifies as the site's static homepage in the Wordpress settings and it works just fine. But I've started to get warning that it is an issue because it creates redirects. For example, I just ran the Ryte service analysis on a website and it warned me about "Non-indexable pages with high relevance" and it's basically my homepage that has 29 incoming links that "passes all pagerank to https://ourdomain/home But what am I supposed to call my homepage if not "Home"? It's not like the old days where anyone has to type it in. The root domain loads the homepage just as it should. Can anybody advise me regarding best practices for what to name a Wordpress homepage for good SEO? With thanks in advance for your help.
Technical SEO | | Dandelion0 -
Google Showing wrong image in the SERPS
Hi Guys, In organic SERPS Google pulling incorrect product image, instead of product image its showing image from relevant products, Checked the structured data, og:image everything is set to the product image, not sure why google showing images from relevant product sidebar, any help, please?
Technical SEO | | SpartMoz0 -
Hey guys, for some reason my homepage has gone down in rankings though other pages on my site have not.
This is not something I have ever seen before. The site is still indexed if I search for it directly, but not in top 100 rankings for keywords even though sub-pages are ranking for the given keyword. Changes I have made recently include site transfer to wordpress, force redirect http to https removal of www by redirect and adding new property instance in Google Search Console. I have checked htaccess file and sitemap and all seem fine. ideas? Site: https://dublinSEO.co
Technical SEO | | HappyApple840 -
Duplicate Content on a Page Due to Responsive Version
What are the implications if a web designer codes the content of the site twice into the page in order to make the site responsive? I can't add the url I'm afraid but the H1 and the content appear twice in the code in order to produce both a responsive version and a desktop version. This is a Wordpress site. Is Google clever enough to distinguish between the 2 versions and treat them individually? Or will Google really think that the content has been repeated on the same page?
Technical SEO | | Wagada0 -
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 Cache is not showing in my page
Hello Everyone, I have issue in my Page, My category page (http://www.bannerbuzz.com/custom-vinyl-banners.html) is regular cached in past, but before sometime it can't show the cached result in SERP and not show in cached result , I have also fetch this link in google web master, but can't get the result, it is showing following message. 404. That’s an error. The requested URL /search?q=cache%3A http%3A//www.bannerbuzz.com/custom-vinyl-banners.html was not found on this server. That’s all we know. My category page rank is 2 and its keyword is on first in google.com, so i am little bit worried about this page cache issue, Can someone please tell me why is this happening? Is this a temporary issue? Help me to solve out this cache issue and once again my page will regularly cache in future. Thanks
Technical SEO | | CommercePundit0