Posts in Category

WebDev

When I developed my Minimal Google Analytics 4 snippet, I thought about preventing it from being blocked by various AdBlockers.

Along with AdBlock Plus, I am also using the DuckDuckGo Privacy Protection extension in Safari. I am using the DuckDuckGo browser on its own as well.

DuckDuckGo, along with restrictive ad blockers, tends to block requests heading to the google-analytics.com domain. This is done on purpose, and I fully understand that.

This is why I described mitigation techniques (Minimal Analytics 4 - masking (hiding) requests).

This technique allows you to utilize Redirect 200 to mask requests to external domains under your domain.

By implementing a redirect as follows:

/g/collect https://www.google-analytics.com/g/collect 200

Instead of calling the address below in a script

https://www.google-analytics.com/g/collect

I am calling this

https://www.example.com/g/collect

Behind the scenes, thanks to Redirect 200, I am sending requests to Google Analytics that are not blocked by either AdBlock Plus or DuckDuckGo.

This solution, however, has 2 major flaws.

Read More about Combining Methods to Prevent Adblockers from Blocking Your Minimal Google Analytics 4 Snippet
Implementing Google Adsense without affecting site performance
Published
Read Time 6 min.

Recently, I have been in contact with several people who have been thanking me for posting articles that have helped them significantly with their technological struggles or in easing their issues.

Some of them have been so happy that they would like to know how to donate a bit to support the cause. While this gesture is appreciated, most of the activities on my site are non-profit.

I used to have ads displayed on my website when it was hosted on WordPress. However, after migrating to Hugo, I soon realized that despite the speed benefits, the web performance was being compromised due to ads served through Google AdSense.

I managed to significantly reduce the costs for my website, so I decided to take the step of removing ads altogether, and I have been happy with this decision.

Supercharge your headings in Hugo with Render Hooks
Published
Updated
Read Time 13 min.

The great thing about Hugo, a static site generator, is that it got a lot of options for customisation and more are constantly added.

There are templates embedded into it, but they can be easily overridden by custom templates, like headings, through render hooks.

Publish your content in Bing News and Windows feed... if you are lucky enough
Published
Read Time 5 min.

Recently I wrote about how to Publish your content in Google News on Android, iOS and news.google.com. Looking further I checked if there is such an option in other search engines like… Bing.

Bing is also offering aggregated News in Bing News along with serving this through integration into the Windows operating system.

Users can get their personalized content through Bing and Microsoft Start, Windows, Edge and Office.

Setting hreflang and x-default on multilingual site (with Hugo)
Published
Updated
Read Time 6 min.

Setting a hreflang meta tag on your multilingual website shall be as simple as a piece of cake. Just put the relevant meta tag on your website, refer to the translated version and on translated version refer back to the original one.

Looks as simple as that. End of story? Wrong!

Escape from Bing Jail
Published
Updated
Read Time 13 min.

My post about Bing Jail gained a bit of attention (a lot!). With the traction, there is hate, but I could expect that as well. There was a bit of conversation in the comments on Hacker News which gives me valuable feedback.

This short, post scriptum post is not an explanation but rather my experience on the following days. My site reappear in Bing search for one day to be manually removed (blocked) the day after where Bing Support, who surprisingly responded, start looking into the case.

Bing Jail
Published
Updated
Read Time 8 min.

My personal site has been recently penalized by Bing, or if you prefer different naming for it - secretly blacklisted or shadowbanned. Don’t know exactly why but by the end of January 2023 I lost every indexed page that had been in Bing.

Serving GZIP compressed Favicon with Netlify
Published
Read Time 2 min.

Recently I have been annoyed when my weekly WebPerformance Report email from WebPageTest shows a failure on Compress Transfer.

WebPageTest Optimiation Summary - Compress Transfer - Result D

This failure, reported in red was done by just one small file… favicon.ico.

Publish your content in Google News on Android, iOS and news.google.com
Published
Updated
Read Time 15 min.

Sadly, on 25 April 2025, Google announced the following:

As of today, publishers can no longer add publications to the Publisher Centre. We are making this change as part of a transition to roll out automatically created publication pages later this year.

Publishers with manually created publication pages will continue to have access to customisation features until later this year, when pages will shift to being automatically created.

I am providing the following article for reference only.

Do you have a website or blog where you publish new things, either daily or from time to time?

Do you know that you can publish them in Google News?

Recently, when I read one of the articles on 9to5mac noticed, that after their post they got this neat feature.

Google News button implemented on 9to5mac website

An option to follow their site through Google News.

It gives them an additional way to get more visitors but also convinces them to stay connected with their content.

My first impression was… I want this as well on one of my websites, so I start exploring how to do that. When I did that, I have been surprised at how relatively easy it was without any extra work from myself. By utilising the website RSS Feed and going through initial configuration and approval (that took approximately 2-3 days) my first site was live and posts were updated when published.

This is another reason to say that RSS is not dead and it still matters.

Here is how I did that and how you can do it as well!

Adding FAQ (Frequently Asked Questions) Schema to Hugo-based website
Published
Updated
Read Time 11 min.

Do you write on your website a series of frequently asked questions (FAQs) and try to answer them? Do you know that putting text on a website is not enough to gain traction? Even if your questions and answers are unique and could be desired by users, they may never find their audience.

Playing with the SEO aspect may help, but if we concentrate only on the surface – visible part, we will still be missing out. What is important is what beneath, just in the background. This is how we can simply describe what is Schema.

Structured data (Schema) is presented on a website in a way that is not visible to an ordinary visitor but processed, when found, by search engines.

Schema is very important and will be even more this year (2023), as mentioned directly by many people at Google.

To get your question-answers into search engines you should put your interest into the Frequently Asked Questions (FAQ) Schema.

Here is how I did this on some of the websites that I made with Hugo.

Categories