Google and Canonical URL

In this post I will change the canonical URL in the <head>, just to see how Google and Googlebot behave between discovery of the URL discovered in the tag.

The canonical tag looks like this:

<link rel="canonical" href="https://www.url-to-crawl.com" /> 

I’ve changed the URL in this example on purpose, in order to make sure that Googlebot discovers the URL only through the rel canonical tag.

I’ll keep you posted with the results !

A slow page, just to check the impact on log

It took a certain to load this page, isn’t it ?

It took probably a bit more than 10 seconds.

It’s normal, the idea is to check how Google SERPs behave with this slow page.

I’ve added a PHP code snippet to make this page to take at least 10 seconds to load using “Insert PHP Code Snippet” WP plugin.

FYI, it is how it looks in the UI of WP:

Well, I had to add content to make this test to work, so here it is !

To find this page during the test, he magic word is: drumblebassseo .

I’ve copied and past few sentences below, found randomly on the web, just to give to credibility to this page:

The classic editor does not solve this issue nor does the tinymce help. I’m embedding HTML from Amazon. Amazon gives HTML for products for their affiliates.

And also this one:

A few people were expressing their frustration with inserting Amazon compliant images in WordPress.  The problem seems simple enough.  Take an image from Amazon and put it on your website.

Sorry, I didn’t add the source.

Impact of search of images on log for SEO

I recently stated a huge difference between the traffic monitored in the Search Console and what I could find in the log files using Kelogs log analyzer. My first hypothesis is that Google Image could be at the origin of this difference, with a preload in background. Second hypothesis is that the first results in Google Web is preloaded if the page is usually too slow.

Protocol to check the first hypothesis:

I’ll try to get the image below indexed for this website, despite it is hosted on amazon, and I will live check the impact on log files when I search for it in Google.

Let’s come back in few days when Googlebot will have indexed this page and display the image in Google Image (I’ll use “site:quentinadt.com” to check it).

So here is the picture of someone swimming:

A women crawling

To check the second hypothesis, Ill make a page which is very slow but ranks on a specific unique keyword.

Test of Indexation of images in background by Google

In this post, there is a background image. It is the picture of my 3 years old Macbook Pro 2016 which is already dying… The screen is sometimes not usable, and most of the time there is just one line, vertical.

The idea is to check if either of not Google will index an image which is accessible only from a background CSS call.

John Muller, from Google, in 2018:

And as far as I know we don’t use CSS images at all for image search.

Source: https://www.seroundtable.com/google-image-search-css-25068.html

Let’s see what if it is still true in 2020 with the mobile first passage, chrome evergreen, the interpretation of the JS, etc.

Results of this SEO test in a few days!

Edit: One month after…

The image is still not indexed.
Current conclusion is that background images aren’t indexable by default.

Who knows this rare fish ?

If you’ve read my last blog post, you will see that it didn’t help to use the title of an image to rank in the SERPs.

So I decided to push the test a little bit further, until I manage to get the image indexed.

So here is the picture of a very rare – endemic – fish that you can found only in Croatian rivers. I’m note passionate about fish, but I thought it’s an ok picture for testing the ranking capacities of the title element.

So again, I’ve added a title, but this time, it contains what most probably is the name of this endemic fish.

Does the Title of picture help to rank in Google in 2020 ?

I recently read that Google uses the title of the images to rank them in Google Images.

It would be kind of a little revolution, since it has never been considered as useful.

I decided to make my own test, just to make sure it works also for me.

So here is the picture, it’s a screenshot of a presentation shared on Linkedin. There are 34 keywords in the title. You can only find the keywords in the title.

This page will be updated with the results !

Edit 1: 3 days later, the page is indexed, but the keywords in the title aren’t findable in Google. So currently, the title has zero impact.

Edit 2: 2 weeks after, still no result when I search a keyword found in the title.

Comment augmenter la précision des rapports “Vitesse du site” dans Google Analytics

Il suffit d’une ligne pour augmenter la précision des rapports Google Analytics de web performance (timing utilisateur):

ga(‘create’, ‘UA-XXXX-Y’, {‘siteSpeedSampleRate’: 100}); // Théoriquement 100% des pages vues

Vous n’obtiendrez pas 100%, notamment car certains navigateurs ne sont pas compatibles avec la mesure du timing utilisateur. Néanmoins, vous devriez facilement dépasser les 25%.

Source: https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#siteSpeedSampleRate

Publishing failed – WordPress – OVH – 2018

If you get the message “Publishing failed” with WordPress 5, you most probably have to stop the firewall (the mod_security in Apache).

With OVH you can do it like this (link to the official OVH guide).

If it’s not enough, it most probably because you have the multi-site enabled.

To you have to login at the root of the FTP server, and edit the file .ovhconfig. You ha ve to edit the following rule:

http.firewall=security

And replace it by:

http.firewall=none

https://docs.ovh.com/fr/hosting/activation-pare-feu-applicatif/

	

Node JS – Hot to solve: code: ‘ENOMEM’, errno: ‘ENOMEM’, syscall: ‘spawn’

If with node.js you get the bug ” code: ‘ENOMEM’, errno: ‘ENOMEM’, syscall: ‘spawn’ ” you can create a swap file to solve the problem.

Here is how to create a swap of 2GB on ubuntu:

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

#Make it persistent after reboot: 
echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab