Fixing small issues to speed up my website (and boost revenue) [EN/FR]
Hello Hive!
At the moment, my goal is to relaunch some of my sites to generate some additional "passive" income. With @altheana we have big investments to make, so we need to get moving to improve our income.
In my portfolio of sites, I have one that is losing strength. In other words: it generates much less traffic.
There are many factors that come into play when we talk about traffic:
- Seasonality
- Competitors gradually nibbling away at the positions of my pages in search engines
- The impact of a Google update endangering many publishers’ sites
- Poor user experience on the site
On this site, it’s more or less a mix of all these factors. To do things properly, it would need to be completely redesigned from A to Z. And for that, two solutions:
- Go through an external provider (I don’t have a budget to put into this site)
- Do it myself (it’s my job)
So I’m going with the second option. New problem: it’s a project that would require 2 to 3 full weeks of planning and several months of redesign. I don’t have the time for that.
So I need to focus on the essentials and modify small things from time to time in order to keep the boat afloat until I have enough time for a complete redesign.
The first problem is the speed of the site.
Google doesn’t like slow sites and tends to reduce their visibility. The issue is as follows: less visibility = less income.
The site in question in this article is slow:
Looking at the treemap of scripts from PageSpeed Insights, I see several interesting things. In particular, one thing catches my eye:
I have several declarations of Google Tag Manager (GTM) on my site. Obviously, that unnecessarily makes my pages heavier (107 KiB at each page load).
GTM is a tool that allows you to integrate and control all tracking tools on the site. You just need to configure it once on the site and the scripts launch automatically on the page (either at each page load, or after a click on an add-to-cart button, etc.).
On my side, I had indeed integrated GTM manually on my site. But then I downloaded a plugin that also did the integration on its side. So I ended up with two scripts launching at each load.
Here, for example, is the GTM integration that triggers Google Analytics 4 and allows me to track visits on my site:
Solving this problem was relatively simple. I just uninstalled the plugin. It was mainly used for e-commerce tracking.
The downside of removing it is that I will have to configure all the e-commerce tracking that the plugin handled manually. But at least it will be cleaner and better optimized than a double implementation.
Now there is only one GTM integration left (1), which loads GA4 (2) correctly. This little optimization has already improved the weight of my pages. In fact, I went from a performance score of 40/100 to 50/100:
Still in the PageSpeed Insights scripts treemap, I spotted a script that I only use on one page, jspdf.debug.js
, and yet it was loading on all the pages of the site.
This file is very heavy (151 KiB). That’s huge for a script useless elsewhere. It represents 9% of the page weight. By activating it only on the right page, I managed to reduce the total weight of the pages and slightly increase my performance score.
Finally, there are other scripts left like pubads_impl.js
(185 Ko), gpt.js
(33 Ko), indy.js
, porpoiseant/*.js
, fastclick/*.js
, quant.js
, id5-api.js
, aps.amazon-adsystem.com
, humix.com
, crwdcntrl.net
, carbon-cdn
, etc.
Except that all these files come from Ezoic, my advertising partner. And here, I can’t really act without reducing my income.
So I stop here for optimization. I’ve already removed a big duplicate and a useless script, and that makes a real difference. No need to go further for now. What’s done is already a big step forward.
Version Française
Bonjour Hive !
En ce moment, j'ai pour objectif de relancer quelques-uns de mes sites pour générer quelques revenus "passifs" supplémentaires. Avec @altheana nous avons de gros investissements à faire, et nous devons donc nous bouger pour améliorer nos revenus.
Dans mon portefeuille de sites, j'en ai un qui est en perte de puissance. Autrement dit : il génère beaucoup moins de trafic.
Il y a beaucoup de facteurs qui rentrent en jeu quand on parle de trafic :
- Saisonnalité
- Concurrents qui grignotent petit à petit les positions de mes pages dans les moteurs de recherche
- Impact d'une mise à jour de Google mettant en péril de nombreux sites d'éditeurs
- Mauvaise expérience utilisateur sur le site
Sur ce site, c'est plus ou moins un mélange de tous ces facteurs. Pour bien faire les choses, il faudrait le refondre de A à Z. Et pour ça, deux solutions :
- Passer par un prestataire externe (je n'ai pas de budget à mettre dans ce site)
- Le faire moi-même (c'est mon métier)
Je pars donc sur la seconde option. Nouveau problème : c'est un projet qui demanderait 2 à 3 semaine complète de planification et plusieurs mois de refonte. Je n'ai pas le temps pour ça.
Il faut donc aller à l'essentiel et modifier de petites choses de temps en temps afin de maintenir le bateau à flot en attendant que j'ai suffisamment de temps pour une refonte complète.
Le premier problème est la rapidité du site.
Google n'aime pas les sites lents et à tendance à leur retirer de la visibilité. L'enjeu est le suivant : moins de visibilité = moins de revenus.
Le site dont il est question dans l'article est lent :
En regardant la treemap des scripts de PageSpeed Insights, je vois plusieurs choses intéressantes. Notamment une chose qui attire mon oeil :
j’ai plusieurs fois une déclaration de Google Tag Manager (GTM) sur mon site. Forcément, ça alourdit inutilement mes pages (107 KiB à chaque chargement de page).
GTM est un outil permettant d'intégrer et de contrôler tous les outils de suivi sur le site. Il suffit de le paramétrer une fois sur le site et les scripts se lancent automatiquement sur la page (soit à chaque chargement de page, soit suite à un clic sur un bouton d'ajout au panier, etc.).
De mon côté, j'avais bien intégré GTM manuellement sur mon site. Mais j'avais ensuite téléchargé un plugin qui faisait lui aussi l'intégration de son côté. Je me retrouvais donc avec deux scripts qui se lançaient à chaque chargement.
Voici par exemple l’intégration GTM qui déclenche Google Analytics 4 et qui me permet de suivre les visites sur mon site :
La résolution de ce problème a été relativement simple. J'ai simplement désinstallé le plugin. Il me servait surtout pour le suivi e-commerce.
L'inconvénient de l'avoir supprimé, c'est que je vais devoir paramétrer tous les suivis e-commerce que le plugin gérait à la main. Mais au moins ce sera plus propre et mieux optimisé qu'une double implémentation.
Maintenant, il ne reste plus qu’une seule intégration GTM (1), qui charge GA4 (2) correctement. Cette petite optimisation a déjà amélioré le poids de mes pages. En effet, je suis passé d'un score de performance de 40/100 à 50/100 :
Toujours dans la treemap des scripts de PageSpeed Insights, j’ai repéré un script que je n’utilise que sur une seule page, jspdf.debug.js
, et qui pourtant se chargeait sur toutes les pages du site.
Ce fichier pèse très lourd (151 KiB). C’est énorme pour un script inutile ailleurs. Il représente 9% du poids de la page. En l'activant uniquement sur la bonne page, j'ai réussi à diminuer le poids total des pages ainsi qu'à augmenter un peu mon scoring de performance.
Enfin, il reste d’autres scripts comme pubads_impl.js
(185 Ko), gpt.js
(33 Ko), indy.js
, porpoiseant/*.js
, fastclick/*.js
, quant.js
, id5-api.js
, aps.amazon-adsystem.com
, humix.com
, crwdcntrl.net
, carbon-cdn
, etc.
Sauf que tous ces fichiers viennent d’Ezoic, mon partenaire publicitaire. Et là, je ne peux pas vraiment agir sans réduire mes revenus.
Donc je m’arrête là pour l’optimisation. J’ai déjà enlevé un gros doublon et un script inutile, et ça fait une vraie différence. Pas besoin d’aller plus loin pour l’instant. Ce qui est fait est déjà un gros pas en avant.
The English translation was done using the DeepL API, images are screenshots, and the first two were generated with Gemini.
I like how you explain all this in detail—it makes it easier for people like me who are not “tech pros” to understand the impact of scripts and plugins. Honestly, reading this makes me want to check my own sites now 😂
!ALIVE
Your post has been manually reviewed for curation by the Principality of Bastion.
Principality of Bastion - Our Leit Motiv? Uniti Crescimus.
Principality's site | Minava NFT Market | Discord | Our Twitch Channel
You may TRAIL this account (or @hive-143869) if you like the curation we do, or join our discord to know more about what we do.
Comment readers : Your post can be curated too using #BASTION to interact with our community or #FR if you speak French.
Congratulations @genesisledger! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)
Your next target is to reach 60000 upvotes.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP