Cloudflare Pages Web Analytics breaks AMP pages - cloudflare

Hope I can help avoiding surprises.
I couldn't find any documentation on this behaviour.
On Cloudflare Pages you can activate Web Analytics with the automatic setup button.
If you have AMP pages you will experience a spike in errors from the Webmaster Tools.
What happen is that Cloudflare doesn't respect the restrains about custom javascript on AMP pages.
The AMP validator output:
The page "configuring web analytics" declares:
Inside "Manage site" in "Advanced options" there's no "add rule" option. You only have a checkbox with "Disable automatic setup".
What's recommended is to install the snippet manually in the pages you want to be tracked and avoid it on AMP pages.

Related

Issue trying to host docusaurus site on Sharepoint Online

I am trying to host a docusaurus site on a SharePoint Online library. I have followed this article: How to host static HTML sites on modern SharePoint site collections - HANDS ON SharePoint (handsontek.net)
It's almost working: when I use the URL of an index.aspx page (previously generated as index.html by docusaurus) the page opens in the browser, but only the navigation bar, left menu and the footer are displayed. The main content in the center is shown as 'page not found'.
If I then click on any link in the navigation bar, pages are correctly displayed. From there, the navigation between pages behaves as expected.
The pain point is that this issues prevents me from using links to single pages. One always have to navigate to a page using the menu.
Would anyone have a solution ?
I have tried the two trailingslash options, but no change.

This page is trying to load scripts from unauthenticated sources after ssl from sslforfree

I am getting error that
This page is trying to load scripts from unauthenticated sources
after doing SSL from SSL for free
how to solve please help
This usually happens when your page has link href tag connected to a website which doesn't have SSL.
If you want to check these href links:-
On your computer, open Chrome.
Go to your website.
At the top right, click More (vertical triple dots).
Click More tools and then Developer tools.
In the right sidebar, at the top, click Console.
Here you'll see which scripts are trying to load from unauthenticated sources.

AMP page not showing on Mobile devices,even it is there

I have already created AMP pages for mobile users of my website.The problem is" when I try to access my website from mobile,it shows web version" and also "If I try to access AMP page from desktop and laptop,it only shows AMP page and does not send my request to NON-Amp page.
1.AMP page fully qualified and without any errors
2.I used
<link rel="amphtml" href="https://www.moztech.in/demo/ampindex.html">
in Non amp version,
<link rel="canonical" href="https://www.moztech.in/demo/index.html">
in AMP version.
If possible review my code and help me.
You are misunderstanding the purpose of AMP. It doesn't do any redirection at all so if you put in the AMP URL into your desktop browser, then you will be going to the AMP page. If you want it to have redirection then you would have to implement it on your own on your server. AMP will not handle any of your redirection, just think of it as a subset of HTML and nothing more.
Sounds like you've set everything up correctly. However, AMP will not do any automatic re-direction.
AMP is designed so that applications may choose to serve the AMP page instead of the standard canonical page. For example,
Google's mobile search will usually display the AMP version of a page instead of the canonical version when available.
Messaging apps may choose to display the AMP version of a page when you receive a link from a friend.
Social networks may display the AMP version of a page within their app when you click on a shared link from within the app.
Because the link tag on your canonical page provides information about where to find the AMP version, it is possible for apps to automatically select the faster and more mobile-friendly mobile experience that AMP delivers. However, this decision is made at the application level, and is not handled by the AMP itself.

GoogleWebmaster Tools render advertisement on my website

so I have finally designed a website and have currently hosted it on 000webhost for free. I wanted to optimize this website using Google Webmaster Tools, but I face a problem when it comes to the Data Highlighting section. This is because Google renders my website with a popup advertisement.
I have tried numerous ways to rid of this advertisement so that Google will not render it, but have failed. I wanted to know if there is any way in which to remove this popup advertisement permanently from my website, while still having it hosted freely, so that I can complete the Data Highlighting of the website using Google Webmaster Tools.
Please help me. Thank you.

How i can remove a particular section of my website from Google who need to inaccessible for public user

I want to remove the dashboards section of my website from Google index how i can remove them from google then they never show them in search result.
First, add those pages to your robots.txt file or use a meta noindex tag to prevent Google from re-indexing it. Then in Google's webmaster tools you can instruct Google to remove the current version from their index (look under "Site configuration" → "Crawler access" in the menu on the left, then the "Remove URL" tab). You can also test your robots.txt in the same area.
See Google's help for more details.