Intercepting Shopify Tracking pixel or stop tracking Resolution=800x600 or Country=Germany?

Topic summary

A user is experiencing thousands of daily bot visits from Germany, typically showing 800x600 screen resolution. They successfully blocked GA4 tracking for these bots using JavaScript that checks screen dimensions.

Current Challenge:

  • Shopify Analytics uses server-side tracking, making client-side JavaScript blocking ineffective
  • No native option exists in Shopify Analytics to filter traffic by country or screen resolution

Proposed Solution:
Another participant suggests implementing Cloudflare’s bot verification feature, which can challenge visitors to verify they’re human before accessing the site. An implementation screenshot was shared.

Status: The original poster (on Shopify Plus) has asked for implementation details. The discussion remains open with no concrete implementation steps provided yet.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

We’re getting a LOT (1000s per day) of bot traffic from Germany and it tends to be from bots with 800x600 resolution

I wrote some Javascript to stop the GA4 pixel firing when screen.width == 800 && screen.height = 600

This works!

However i’m having trouble stopping the Shopify Analytics traffic

As far as I can tell it’s server side tracking, therefore:

  1. there’s no way to block the traffic pixel when the screen.width is 800 and screen.height is 600

Also, in Shopify Analytics there seems to be no way to block countries such as Germany

Does anyone else know a workaround to this problem?

Hi vincents,

To prevent bot traffic, consider cloudflare. Cloudflare has the feature to verify the human when someone visit to your website.

Kind Regards

Hi Jmah, how is this implemented? We’re on Shopify Plus