Website redirection issue on mobile devices

Website redirection issue on mobile devices

AbzLBC
Tourist
7 0 1

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! 

Replies 10 (10)

Small_Task_Help
Shopify Partner
1054 45 102

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

To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad
AbzLBC
Tourist
7 0 1

I have updated the theme and removed apps as well but can’t seem to find the bad code to remove it. 

tim
Shopify Partner
4539 546 1658

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?

 

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
AbzLBC
Tourist
7 0 1

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. 

tim
Shopify Partner
4539 546 1658

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...

  

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
AbzLBC
Tourist
7 0 1

Thanks Tim,

 


Do I need to erase that section of the code? I can’t seem to find that script within the Theme files. 

tim
Shopify Partner
4539 546 1658

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...

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
tim
Shopify Partner
4539 546 1658

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:

Screenshot 2025-04-25 at 8.09.56 PM.png

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com
AbzLBC
Tourist
7 0 1

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.

 

 

tim
Shopify Partner
4539 546 1658

I doubt it's Privy though.

However, yes, looks like it's gone now.

 

If my post is helpful, hit the thumb up button -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com