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
-
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 -
Added a canonical ref tag and SERPs tanked, should we change it back?
My client's CMS uses an internal linking structure that includes index.php at the end of the URLs. The site also works using SEO-friendly URLs without index.php, so the SEO tool identified a duplicate content issue. Their marketing team thought the pages with index.php would have better link equity and rank higher, so they added a canonical ref tag, making the index.php version of the pages the canonical page. As a result, the site dropped in the rankings by a LOT and has not recovered in the last 3-months. It appears that Google had automatically selected the SEO-friendly URLs as the canonical page, and by switching, it re-indexed the entire site. The question we have is, should they change it back? Or will this cause the site to be reindexed again, resulting in an even lower ranking?
Technical SEO | | TienB240 -
google webmaster tools Indexing request rejected
when i try to index my posts in google webmaster tools i see this eror : Indexing request rejected
SEO Tactics | | sasansasyino
During live testing, indexing issues were detected with the URL
Crawl
Time
Sep 23, 2023, 11:05:05 PM
Crawled as
Google Inspection Tool desktop
Crawl allowed?
Yes
Page fetch
error
Failed: Hostload exceeded
Indexing allowed?
N/A
Indexing
User-declared canonical
N/A
Google-selected canonical
Only determined after indexing my website : http://123select.ir/0 -
Website is not getting indexed
Hi,
Content Development | | Aman0022
Hope you all are doing great!
I have created a dog blog a few weeks back which talks about all things about dogs (http://pawspulse.com/). I am publishing couple of articles everyday which are more than 5k words long with proper keyword research but still Google is not indexing my content. My content is systematically categorized in proper categories related to dog guides, nutrition, accessories, dog breeds etc.
Can anyone help me how to get the website index faster fully. Any help will be much appreciated. Thanks0 -
Website homepage temporarily getting removed from google index
hi, website: www.snackmagic.com The home page goes out of google index for some hours and then comes back. We are not sure why our home page is getting de-indexed temporarily. This doesn't happen with other pages on our website. This has been happening intermittently in the gap of 2-3 days. Any inputs will be very useful for us to debug this issue Thanks
Technical SEO | | manikbystadium0 -
Ranking is dancing for 2 months
Hi, We have recently, https on website, all set perfectly. We also moved to php7 from 6. These two changes shouldn't harm our ranking, for keyword Virginia Beach, we used to show at first 5 position in Google.com. But for past 2 months ranking is dancing. This is insane. we have seen us on position #5 several times over the past few weeks, then it just disappears. website vabeach.com Your help will be appreciated.
Technical SEO | | irrfans40 -
What should the combined domain rank of 2 sites?
We have just combined 2 sites by redirecting a site with a domain ranking of 35 to a site with a domain ranking of 27 (this is because the we want to use the address with a ranking of 27) After a week I now have 1 domain with a ranking of 26?? So my questions are; Should the ranking have increased already? What should I expect the ranking to increase to if at all? Is there something I could have done wrong when transferring? Thanks
Technical SEO | | benj450 -
Self-Cannibalization showing again and again
Hi.. We were just doing the on page for, http://www.wogwear.com/christian-bracelets.html While checking on ON PAGE tool, it keeps on showing, Avoid Keyword Self-Cannibalization Its an eCommerce website and all the products in that page had titles in h2 . I thought, that was creating problem, so I tried changing them to h3 and h4 , but still no good. What am I missing ?
Technical SEO | | qubesys0