Skip to main content

Case Study: How the Cookie Monster Ate 22% of Our Visibility



Someday, one of Germany's most prominent property tech companies made the decision last year to migrate to a new CMS. The migration had two main goals: increased page speed and a future-proof, state-of-the-art website with all necessary features. The migration was initiated to allow content editors to create pages more easily without the assistance of developers.

After looking at several CMS options, Contentful was chosen for its modern technology stack and superior user experience. As a headless CMS Contentful allows us to choose the rendering strategy that we prefer.

To reduce the chance of large-scale problems, we're currently performing the migration in multiple stages or waves. We had an issue with the cookie consent during the first wave. This led to a visibility drop of nearly 22% in just five days. This article will describe the issues we faced during this first wave of migration and how we solved them.

The first test wave is being set up

We chose 10 pages that had high traffic, but low conversion rates for the first wave of tests. We set up an infrastructure to monitor and report on these 10 pages.

  • Rank-tracking of the most relevant keywords

  • SEO dashboard (DataStudio, Moz Pro, SEMRush, Search Console, Google Analytics)

  • Regular crawls

We successfully migrated the first 10 SEO pages to our new CMS in December 2021 after a thorough planning phase and testing phase. While there were many challenges during the testing phase (higher loading times, larger HTML Document Object model, etc.), we successfully migrated the first 10 SEO pages to the new CMS in December 2021. Choose the best SEO Services Company for increasing your SEO performance. We decided to go live because we didn't see any major blockers and we wanted to migrate our first test wave before Christmas.

First performance review

We were so excited to have completed the first step in the migration, that we decided to take a look at how the pages performed the next day.

We were not pleased with what we saw next.

Overnight visibility of tracked keywords on migrated pages decreased from 62.35% down to 53.59% -- we lost 8.76% visibility in one day

We conducted another round of testing to address the steep decline in rankings. We also tested for indexing and coverage issues. If all meta tags were present, we also checked for structured data, internal links, page speed, mobile-friendliness, and meta tags.

Second performance review

Each article had cached data after the migration. The content was also fully indexed and being viewed by Google. We could also exclude many migration risk factors (changes in URLs, content, meta tag, layout, etc.). As there haven't been any modifications, we could exclude them as sources of error.

The visibility of our tracked keywords dropped to 40.60% in the following days. This is a drop of nearly 22% in just five days. This was evident in comparison to the track keywords' competition (here "estimated Traffic"), but visibility looked similar.

It was clear that it was a technical problem, as all other factors that could affect migration and Google updates were excluded. Low Core Web Vitals scores or a more complex, larger Document Object Model (DOM), could all be possible causes. JavaScript, a programming language like JavaScript, can interact with the DOM to modify page structure, style and content.

Follow the cookie crumbs

We needed to quickly identify problems and fix them as soon as possible. This would minimize traffic drops and other negative effects. Our tool showed us the increase in pages with high external links and pages with the largest content. This gave us the first clue as to what technical cause it might be. Pages should not exceed the maximum content limit. Otherwise, they may not be fully indexable. It is crucial that external links have trustworthiness and are relevant to users in order to avoid excessive external linking. It was quite suspicious that external links grew in this manner.

These metrics were unfavourably high in comparison to the number of pages we had migrated. Why?

After examining the links that had been added to the pages migrated, we discovered that Google was indexing and reading the cookie consent for all pages migrated. Our theory was confirmed by a site search. We checked for the cookie consent content.

This caused many problems:

  1. Due to the cookie consent form being indexed, there was a lot of duplicate content on each page.

  2. The content of migrated pages has increased dramatically in size. This can lead to pages that have a lot of content not being fully indexed.

  3. The number of outgoing links from outside has increased dramatically.

  4. Our snippets suddenly displayed dates in the SERPs. This could indicate a news article or blog, whereas most Homeday articles are always green content. The meta description was also cut due to the data being displayed.

Why was this happening? Cookiebot, our service provider, claims that search engine spiders access websites in a way that mimics full consent. They are able to access all content and copy contained in the cookie consent banners. However, the crawler does not index them. Nowadays eCommerce Seo is in demand you can help out by using ecommerce seo services for your eCommerce platform.

Why wasn't this true for the migrated pages as well? We crawled the pages and rendered them with different user agents but couldn't find any trace of the Cookiebot within the source code.

Search for a solution by using Google DOMs

The pages that are migrated contain dynamic data from Contentful and plugins. Sometimes, the plugins are from a partner and contain only JavaScript code. One of these plugins was called the cookie manager partner. It fetches the cookie consent HTML outside of our codebase. We didn't find any trace of the cookie consent HTML code within the HTML source files. However, we did notice a larger DOM and traced it back to Nuxt’s default, more complicated, larger DOM. We use Next, a JavaScript framework.

We used Google Search Console's URL inspection tool to verify that Google was actually reading the content from the cookie consent banner. The DOM of the page that was migrated was compared to the non-migrated page. We finally discovered the cookie consent content within the DOM of the migrated page.

Another thing that caught our attention was the JavaScript files we had on our old pages and the ones on our migrated pages. Two scripts are used to display the cookie consent banner on our website, one to grab consent (uc), and one that imports banner content (cd).

  • Our old pages had uc.js as the only script. This script is responsible for the consent banner. It is the only script that we require in order to manage user consent. It displays the cookie consent banner and indexes the content. The user can save their decision (if they agree to or disagree with the use of cookies).

  • Apart from uc.js for migrated pages, there was also a Cd.js file load. The cd.js is required if we are creating a page that displays more information about cookies and indexes the data. Both files were thought to be dependent on each other. This is incorrect. The uc.js file can be run by itself. The cookie banner's content was rendered and indexable by the cd.js files.

We thought that the second file was a pre-requirement to the first. It took us a while to locate it. The solution was to simply delete the loaded cd.js files.

After implementing the solution, a performance review

Our keyword visibility was 41.70% when we deleted the file. This was 21% less than it was before migration.

However, visibility rose to 50.77% the day after we deleted the file. The next day, it was back at 60.11%. Similar results were observed for the estimated traffic. It was a relief!

Conclusion

It is possible that many SEOs have had to deal with such small issues. Although it seems minor, this caused a substantial drop in traffic and visibility during the migration. This is why I recommend migrating in waves and allowing enough time to investigate technical issues before and after the migration. It is important to keep an eye on the performance of the site for several weeks after the migration. These are my top takeaways from the migration wave. We have just completed the second wave of migration at the beginning of May 2022. I can confirm that there have been no major issues. We will have two waves more and hopefully complete the migration by June 2022.

 


Comments

Popular posts from this blog

10 Smart Ways To Increase Traffic To Your Blog by 100 %

Using platforms such as WordPress, it's easy to start a blog. Once your blog is up and running, the next step is to increase traffic to it. You don't have to be a marketing expert to promote your blog. These best practices can help you increase your blog traffic and get more visitors. This article will discuss the best and easiest ways to increase blog traffic, just like an expert marketer. So what’s a blogger to do? There are many ways to increase traffic to your blog. While the list below isn't exhaustive, it does include some of my most popular and tried-and-true methods to increase my blog readership. You will find super-helpful tips on the topic at the end of this article. 1. Optimize Your Blog's User Experience Look at the design of your blog. Technology changes as technology do. Technology can look outdated and out of date, even though it once looked modern and fresh. Next, consider the user experience (UX), for your visitors. Is it easy to navigate your blog? Is...

7 Tips to Help Convert Your Leads Into Sales

Most of your leads won't convert automatically to sales if they are directed through your funnel of conversion. It is often necessary to provide assistance to achieve the conversion. Here are seven suggestions to help you turn more leads into sales. 1. Make an offer of an incentive Find a person who isn't a fan of freebies. Offering a free item or offering a discounted offer that is time-bound can be a fantastic way to encourage leads to become converts. The discount doesn't need to be extravagant and the offer doesn't need to have the highest value. A typical consumer cannot resist an offer that is free or a time-limited discount. 2. For a sale, ask for it. What is the sale of revolutionary marketing advice? It's not. It's really common sense, and it's something that a lot of businesses don't practice. Ask your leads if they're willing to buy and observe how many of them respond "yes." They joined your list because they are interested in w...

Simple Ways You Can Build Customer Trust & Loyalty

  In recent years, digital marketing has shifted towards a customer-centric approach. It's clear enough for many to understand why. The trust of customers has been steadily declining for many reasons. Audiences have become more tech-savvy and are also becoming warier of "sales language". They are more socially aware, more cautious and more patient. Building customer trust is essential in this new environment. It's not easy, even though it's imperative. Techdigitalworld is one of the best digital marketing agency in the United Kingdom and offers the insights you need to use branding to build trust and loyalty. Your brand can build customer trust How can branding foster customer trust? While there are many ways to build customer trust, here are seven basic principles. 1. Polish your web design A website visit is the first contact with your brand for many customers. It is often the first contact with your brand. We've seen both the good and bad si...