Hi Team,
We are facing an issue with a significant amount of bot traffic originating from users with screen resolutions of 800x600 and 1024x768. To mitigate this, we have successfully implemented a JavaScript solution that detects these uncommon resolutions and blocks the GA4 pixel from firing.
However, we are now looking to extend this solution to prevent the Shopify Analytics pixel from firing for these same resolutions. Given that Shopify Analytics is likely server-side, we are exploring potential client-side solutions:
- Deleting the Shopify Analytics Object: Using JavaScript to delete or disable the Shopify Analytics object when these resolutions are detected.
- Setting Privacy/Content Restrictions: Implementing a “no track” object or similar privacy settings when these resolutions are detected.
Could someone provide guidance or suggest alternative methods to achieve this? Any insights or recommendations would be greatly appreciated.
Thank you!
Hi Kai,
Thanks for flagging this - I’ve connected with the relevant team internally to get their recommendation on what you’ve described.
Hi Liam,
Just an update,
With Javascript, we tried intercepting and blocking the following hostnames for screen.width 800 or 1024 (common bot screen widths) and the Shopify Visitor Analytics stayed the same (or increased) so we don’t think the Shopify Analytics is client side but please correct me if i’m wrong
List:
error-analytics-sessions-production.shopifysvc.com
monorail-edge.shopifysvc.com
This method works very well with GA4 so this will work well on Shopify Analytics if it uses a client side tracking pixel (which we have not been able to discover)
Hi Liam, any updates on this?
We’re just trying to block the Shopify Analytics tracking pixel
Especially on the following browser versions
[‘70.0.3538.77’, ‘123.0.0.0’, ‘131.0.0.0’, ‘119.0.0.0’, ‘120.0.0.0’];
Hi again,
From connecting with the team on this Shopify doesn’t support or recommend disabling tracking on the frontend.