One of my client's website is a B2B technology company website.
I was working on website revamp. Following things were done during the website revamp.
- The website URL structure, permalink structure is changed.
- The website hosting provider is changed.
- The website's CMS is also changed.
- The website's SSL provider is changed. (previous website was also https and new website is also https)
- We carefully prepared a complete list of HTTP 301 redirects from the old permalink structure to the new permalink structure. There are over 800 URLs in this HTTP 301 redirect.
- No changes have been made in Google Search Console.
- Google Analytics script is also the same.
- We tested each and everything and technically it was all good to go, without any bugs.
Once the new website is launched, the traffic was also almost the same, with a slight drop (as expected). However, then after we saw a constant drop in direct traffic month after month.
The new website was launched on 26th March, 2022 (the red circle in the screenshot). I also talked to the agency and asked them to update the code in third week of May (the yellow circle in the screenshot)
- While the new website developement, the agency added this PartyTown JS script for resource prioritization. But later on it is taken out.
- The GDPR cookie. We see that traffic is NOT dropped from non-EU countries. So GDPR cookie is also functioning well.
- The 800+ HTTP 301 redirects. I tested, but these redirects are working well. There isn't any potential harm for this direct traffic loss.
Neither of these hypothesis worked.
Need help to understand this 60% loss in direct traffic and how can I fix that.
There is definitely something wrong in the coding side so that Google Analytics is not able to attribute this traffic and it is not counted.
All other traffic channels are showing almost constant traffic.