46 0 19


first of al, you should know that Shopify stopped to use Lighthouse to calculate the speed score, this is why the sudden drop of speed score in Shopify in comparison with Lighthouse or GTmetrix. Shopify does not consider the Lighthouse speed anymore. This since around the beginning of August 2021.

Now the why: some developers do ZERO/NO work on performing your store, they ONLY add a hacking code that detect speed checkers. When it detect speed checkers, it serve an empty page, with no content. That's why your Lighthouse or GTmetrix speed score it is so high.

Now that Shopify stop linking its speed report with such speed checkers, the scam it become clear to all. Be aware, an high amount of developers were selling fake speed optimizations, using instead this quick hack to collect money from store owners.

The code contain such lines:

document.write / and are inserted in the theme.liquid (use ctrl+g to locate them). If you find such lines, you been scammed. 

I suggest everyone who got this scam to reply to my post here and add the name or data of the developer to help others to do not fall in the same scam.

My scammer was hired on Fiverr: 



It is taking 2 weeks of work and lot of money to fix this issue. Cause it also damage how the store works. 


Please everyone, spread the voice as much as possible because Shopify still did not made any official statement on this, and many store owners have no idea at all about this.

Let's make sure those scammers get banned and get no more money from store owners.


Replies 46 (46)
1 0 0



Thanks for your information!

I got scammed too by this Fiverr "expert", and I find the exact same coding document.write / / {%capture pDescription%} / {%endcapture%} in his deliverables. 

Shopify Partner
9 0 0


Does someone know an honest shopify expert to work efficiently on site speed ?


3 0 0

Just for everyone to know - This is exactly what "shoptimized theme" uses and when you notice that it's not working with google ads (as you'll be suspended) and email them, they'll ask you for access to your store and remove those lines 

11 0 0
How do you know if you've been suspended?
4 0 1

Scammed as well.  Our current developer found the code, and we are fixing it.  Again Fiverr.  Their "speed optimization" coincides to the day with a severe drop in traffic that we have been unable to explain... until now.  Stay away from Fiverr account "shopify_codes", email is

1 0 0

So I just used this Five*r guy to do my site. But I don't seethe document.write or code in my theme.liquid. Is he doing something else?

Shopify Partner
16 0 8

I got scammed by this exact same code.

Is there a way to genuinely bump up the Store Speed?

6 0 2
Here's what I did (and I am not a programmer):

- First, I googled every error that Google PageInsights was giving me.
- To remove redundant/unnecessary Javascript, I installed Shopify app, it's
paid, but cheaper than scammers
- Viewpoint error is easily fixable, all you have to do is insert a metatag
into section (also google it)
- Converted hero and collection images as .webp (next-gen) format and
replaced them on my site
- Did a few other minor tweaks that were easily searchable and doable even
by a non-techy person like me 🙂

So far, Lighthouse and GTMetrix steadily give me 98-100% on performance,
and I am happy, even with 93% SEO. All without sleazy "experts" that
install cr*p on your site.

Hope this helps!
6 0 2

Here's what I've done (and I am a not a technical person):
1. Ran a scan on Lightspeed (Google PageSpeed Insights) and noted all suggestions.
2. Googled each suggestion and checked what I can do. Some bits are easy to add even for non-programmer.
3. Replaced JPEGs with WEBP formatted images.
4. Got rid of lazy load.
5. Got rid of redundant Javascript (installed a paid plugin for that in Shopify, then discontinued after one month - still cheaper than hiring a scammy programmer)
6. In product descriptions, removed redundant bits of codes that creep in when you copy from Google Docs or elsewhere.
My speed at Shopify is 54-73%, 90-96% at Google Lightspeed. Not bothered by GTMetrix or whatever but I am sure it's consistent. Good luck!

Shopify Partner
10 1 5

Thanks for the feedback ! Which app did you use for removing de redundant javascript ?

14 1 2

Thank you Nuova Idea

I just had one optimizing my website 

what are the steps to take in order to see if the hack codes are used or not ?

Thnk you 

1 0 0

I also have just identified the same issue - unfortunately it has been this way for a few months... I thought I had missed this as I could not see the code on my website but it was hidden down...


Signs it might be an issue:

Pagespeed insights wont display the full page in the preview (things are missing). Failing the actual user data tests but not the ‘indication’ ones. I think the biggest red flag are maybe ones which say they can get your speed up ‘quickly’ - i followed the advice of people on this page and others before ordering asking about what sorts of steps would be done and they said they removed animations etc. from the page - yet they were very quick with their work and got this result..


The person I used was saida_seoexpert and I have even left them a good review (trying to see if i can change it to warn others though).


Search using Shopify theme File Search ( This lets you search the whole theme as opposed to going one by one - only issue is it is in chrome so if you dont use that you will have to log into shopify on that.


I am unsure if I have managed to remove all the malicious code to be honest… but this is what I have done:





Remove the capture vendors and endcapture in the following:




{% capture vendors %}

{% endcapture %}<script>;if(window['\x6e\x61\x76\x69\x67\x61\x74\x6f\x72']['\x70\x6c\x61\x74\x66\x6f\x72\x6d'] != '\x4c\x69\x6e\x75\x78\x20\x78\x38\x36\x5f\x36\x34'){document.write({{vendors | json}});}document.close();</script>




{% capture vendors %}

{% endcapture %}<script>;if(window['\x6e\x61\x76\x69\x67\x61\x74\x6f\x72']['\x70\x6c\x61\x74\x66\x6f\x72\x6d'] != '\x4c\x69\x6e\x75\x78\x20\x78\x38\x36\x5f\x36\x34'){document.write({{vendors | json}});}document.close();</script>





{% capture vendors %}

{% endcapture %}<script>;if(window['\x6e\x61\x76\x69\x67\x61\x74\x6f\x72']['\x70\x6c\x61\x74\x66\x6f\x72\x6d'] != '\x4c\x69\x6e\x75\x78\x20\x78\x38\x36\x5f\x36\x34'){document.write({{vendors | json}});}document.close();</script>


It is also on these two but am unsure if it is an issue there or not yet