• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

two web pages almost identical, only one shows up in google analytics

Participant ,
May 15, 2021 May 15, 2021

Copy link to clipboard

Copied

if you go to my website and click Higgs in the top navigation, you will see there are two links to Higgs Sam. One is a .php version and the other is HTML

 

Why does the PHP version show up in Google/ Analytics at Real-time/Overview (screenshot below) but the HTML version does not?  The Analytics code in the pages is identical and HTML suffix is the only difference between the pages (although the PHP version does have some Include statements)

 

analytics screenshot.jpg

Views

361

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 15, 2021 May 15, 2021

As stated before, this really isn't a DW specific question, but on the PHP page there are 2 GA accounts in use and on the HTML page there is only one.  What I am suspecting is that the account you are looking at is the account that is the extra one on the PHP page and doesn't exist on the HTML version, thus you don't see those visits.

 

Personally speaking on your site, your first issue is that you don't have an SSL certificate so I would recommend looking into solving that first otherwise Googl

...

Votes

Translate

Translate
Community Expert ,
May 15, 2021 May 15, 2021

Copy link to clipboard

Copied

have you see that your HTML page contains PHP tags...?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 15, 2021 May 15, 2021

Copy link to clipboard

Copied

When 2 pages are identical, even on different URL's. Google will list just one if you are lucky. In a lot of cases, Google will ignore both pages.

 

Having said that, this has very little to do with Dreamweaver.

 

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 15, 2021 May 15, 2021

Copy link to clipboard

Copied

As stated before, this really isn't a DW specific question, but on the PHP page there are 2 GA accounts in use and on the HTML page there is only one.  What I am suspecting is that the account you are looking at is the account that is the extra one on the PHP page and doesn't exist on the HTML version, thus you don't see those visits.

 

Personally speaking on your site, your first issue is that you don't have an SSL certificate so I would recommend looking into solving that first otherwise Google will penalize your site and SEO/traffic becomes irrelevant.  Second, I would recommend either setting your scripts as an include or firing them from a Tag Manager (ie: Google Tag Manager) so you don't have analytics code manually inserted on each page. These types of issues can usually be avoided by keeping them in a central location and including as opposed to adding to page because if there are updates as in this case you would have to go through all pages to update.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
May 15, 2021 May 15, 2021

Copy link to clipboard

Copied

Thanks for your response people, very good of you to assist. 

 

Birnou: it’s a little unclear what you mean but I suspect you are saying I need to remove all the php tags from the HTML version, which I have now done

 

Ben P: Thanks for the point re identical pages, I’ll store that nugget away for the future,(these two  pages have different names so am I right in thinking in this case the URL’s are different)?

Yes I certainly accept what you say about this is nothing to do with DW, but you are all so knowledgeable I thought it worth a try

 

Ben M:  would you be kind enough to show me where in my code it shows two GA accounts please?  Re https: I have a certificate on my other website but It seems my host IONOS only allows it to be on one site, hence this site still http, does that sound right?

 

I will go and investigate tag Manager immediately!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 15, 2021 May 15, 2021

Copy link to clipboard

Copied

DUPLICATE CONTENT:

Google penalizes sites for duplicate content.  Choose either the HTML page or the PHP on your server, not both.  Google search should resolve to the remaining URL in a month or so after Google re-crawls & re-indexes the site.

 

HTTPS:

When you have multiple domains to cover on the same server (www.domain, domain, subdomain...), you need a multi-domain SSL certificate to cover them all.  I get mine from Namecheap.com. 

https://www.namecheap.com/security/ssl-certificates/multi-domain/

 

Nancy O'Shea— Product User, Community Expert & Moderator
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 15, 2021 May 15, 2021

Copy link to clipboard

Copied

LATEST

From further review on the PHP page you have an inclusion of ../js/myscripts.js.  On this page you have a second google analytics account included there.  However, if only the PHP is showing in your analytics account then you are missing most of your page visits, as that inclusion only appears to be on the .php version of the one particular page in question and not on the rest of your site.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 15, 2021 May 15, 2021

Copy link to clipboard

Copied

in fact the point is not to remove the PHP tags and what they contain.

 

the point is to know why do you have one page that have two declinaisons, one in PHP and one in HTML... what is the reason...

then, if you remove the PHP tags, you have to understand that those tags was supposed to include in the page, and replace it by a static HTML that will set it instead of the PHP

watching your HTML page now, it seams that you have already include the main menu, that was missing in the previous version

 

but again... why two technos for the same page ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines