All things Shopify and commerce
Hi,
I’m having an issue with my website, on a mobile device it sometimes redirects to wp54trk dot com and then goes onto a random betting or nike website.
I can’t seem to locate the script that’s causing this in the theme coding. I believe it was left by a previous app that was installed.
Any help please!
Hi,
Hope this will help
- Check for Suspicious Apps
- Seems Bad code is sending your visitors to fake sites
- Clean theme files
- Use tools to scan for sneaky stuff
I have updated the theme and removed apps as well but can’t seem to find the bad code to remove it.
If theme is new and clean and offending apps are removed, then it is possible that offending code is somewhere in your, say product descriptions.
Have you imported or copy/pasted any texts like product or collection descriptions from another sites?
Do you know on what pages it happens? Or it happens on all pages?
Can you share a link to your store?
Hi Tim,
Website is www.londonbeardcompany.com
Nope haven’t imported or copied any texts from other sites.
It seems to occur on homepage and products page as well.
First of all, this:
function asyncLoad() {
var urls = [
"//shopify.privy.com/widget.js?shop=london-beard-company.myshopify.com",
"https://www.wp54trk.com/scripts/shopify/click.js?nid=538u0026intid=11u0026shop=london-beard-company.myshopify.com",
"https://cdn.shopify.com/s/files/1/0731/3519/t/10/assets/clever_adwords_global_tag.js?shop=london-beard-company.myshopify.com",
"https://sdks.automizely.com/conversions/v1/conversions.js?app_connection_id=6c949fa9262543e7b0f5fc3467d69f2eu0026mapped_org_id=0761025aaaf2e7096498d0bc49dd273d_v1u0026shop=london-beard-company.myshopify.com",
"https://cdn1.judge.me/assets/installed.js?shop=london-beard-company.myshopify.com",
"https://omnisnippet1.com/inShop/Embed/shopify.js?shop=london-beard-company.myshopify.com",
"https://cdn.hextom.com/js/freeshippingbar.js?shop=london-beard-company.myshopify.com"
];
...
This is a part of the code Shopify injects into <head> of your site.
This particular function loads scripts for the apps you've installed in your store. An app can add one item to this list.
As you can see, the second one in the list is a script from the site in question.
URLs for other apps are kinds obviously point to the apps you have:
Privy, offender, Clever adWords, Automizely, Judge.Me, OmniSnippet? and Hextom.
So look for your offender amongst other apps...
Thanks Tim,
Do I need to erase that section of the code? I can’t seem to find that script within the Theme files.
You would not be able to do this. It is not a part of your theme.
The code is injected into your HTML by Shopify as part of the content_for_header variable -- this is legit, just the App went bad.
So you need to find which app it is, I can't help further with this because I can't see the list of the apps you have.
You may screenshot the list and upload here...
Yes, this is the script which does redirection. Script sets a "cookie" so it happens once per day, so if you've got redirected once, you'd need to re-try in Incognito mode...
I guess, when you find the offending app it's worth notifying Shopify that the app is no longer well behaving.
Share the app name here as well.
Here is the screenshot of the malicious script -- highlighted line will redirect to their site:
I uninstalled a bunch of apps including Hextom, Privy, AmpifyMe and it looks like that script is removed now. Website seems to load a bit quicker as well!
It might have been the Privy app.
I doubt it's Privy though.
However, yes, looks like it's gone now.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025