Jump to content

GA4 - showing 2 versions of my homepage

Recommended Posts

I noticed on my website Custom Made Casino that when we moved from universal analytics to GA4, it now shows 2 versions of my homepage. custommadecasino.com/ and custommadecasino.com/index.php?route=common/home. I tried to fix this with a redirect but it messed up my entire website. Is there a reason that ga4 shows it this way, does it effect seo? If so, how can it be fixed? We use opencart for our site and it seems to use these php directories but we much prefer the seo friendly urs. 

Edited by requinix
removing link
Link to comment
Share on other sites

It'll be finding two versions because you do have two versions: it can't tell that the index.php one is "the homepage" and you're (I assume) using URL rewriting in the backend to map / to /index.php?route=common/home.

Redirects are the answer, however they have to be very carefully done: redirect from the ?route= thing if that was the actual URL requested. Because if you don't have that little condition at the end, your server will redirect back and forth between them.

How are your redirects set up now?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.