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 -
GA 4 Question
What differences are you typically seeing in Google Analytics 4 compared to UA? For one site I have, UA says there were 2,342 new users. GA4 says there were 1,899 new users for the same time period. Does that seem like a normal amount of difference between the two platforms?
Reporting & Analytics | | emilycarimus1 -
Unsolved Google Analytics (GA4) recommendations for SEO analysis?
Guides on Moz and elsewhere mostly refer to Google Analytics' Universal Analytics (UA). However, UA is being replaced with GA4, and the interface, options, and reporting are very different. Can you recommend a clear, thorough, and effective walkthrough of how to set up useful SEO reports in GA4? Is there a simple tool you recommend that will help connect historical data from UA to GA4 when GA4 is the only option available? If there's no simple tool, what values do you recommend retaining from UA for effective historical reporting? How would you use them? At minimum for reporting, I'd want to show month-to-month changes and year-to-year changes (in percentages and in real numbers) for the following: all site visits all organic visits organic visits as a percentage of all site visits organic visits that led to a specific goal completion organic visits that led to any goal completion Thanks in advance for your help!
Reporting & Analytics | | Kevin_P1 -
Custom Events Not Showing in GA4
I have some experience in successfully creating custom events for GA4 via Tag Manager, but I have one account where my events are firing in GTM but not showing at all in GA4 (not real time or anywhere). I have twice done them over and published my changes but still no luck. Any ideas what else the issue can be? There are no internal filters at the moment. Thank you.
Reporting & Analytics | | bradsimonis1 -
Unsolved Can Moz integrate GA4 data?
With the new GA4 coming out in 2023, can our Moz accounts connect to the new GA4 property?
Product Support | | ArttiaCreative0 -
Google Cache showing a different URL
Hi all, very weird things happening to us. For the 3 URLs below, Google cache is rendering content from a different URL (sister site) even though there are no redirects between the 2 & live page shows the 'right content' - see: http://webcache.googleusercontent.com/search?q=cache:http://giltedgeafrica.com/tours/ http://webcache.googleusercontent.com/search?q=cache:http://giltedgeafrica.com/about/ http://webcache.googleusercontent.com/search?q=cache:http://giltedgeafrica.com/about/team/ We also have the exact same issue with another domain we owned (but not anymore), only difference is that we 301 redirected those URLs before it changed ownership: http://webcache.googleusercontent.com/search?q=cache:http://www.preferredsafaris.com/Kenya/2 http://webcache.googleusercontent.com/search?q=cache:http://www.preferredsafaris.com/accommodation/Namibia/5 I have gone ahead into the URL removal Tool and got denied for the first case above ("") and it is still pending for the second lists. We are worried that this might be a sign of duplicate content & could be penalising us. Thanks! ps: I went through most questions & the closest one I found was this one (http://moz.com/community/q/page-disappeared-from-google-index-google-cache-shows-page-is-being-redirected) but it didn't provide a clear answer on my question above
Technical SEO | | SouthernAfricaTravel0 -
Can anyone show me a good example of Microdata for a site
Hi, i am just learning about microdata after being told that it would be a good idea to have this for my site www.in2town.co.uk as i understand it, if i put this in, then it will allow google to understand more about my page I have been reading about it here https://support.google.com/webmasters/bin/answer.py?hl=en&answer=99170 and would like to know if anyone is using it and if it is making a difference, also can anyone show me some good examples on a working website please i work in joomla so as i understand it, i would have to put this in each page to help google understand more about the page and its content any help would be great.
Technical SEO | | ClaireH-1848860 -
Why are old versions of images still showing for my site in Google Image Search?
I have a number of images on my website with a watermark. We changed the watermark (on all of our images) in May, but when I search for my site getmecooking in Google Image Search, it still shows the old watermark (the old one is grey, the new one is orange). Is Google not updating the images its search results because they are cached in Google? Or because it is ignoring my images, having downloaded them once? Should we be giving our images a version number (at the end of the file name)? Our website cache is set to 7 days, so that's not the issue. Thanks.
Technical SEO | | Techboy0