📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

MegaShopBot and Adblock with Google Analytics Rule

MegaShopBot hasn't worked for me in a while. Just thought I'd let you know I've worked out the cause in case anyone else is having the same problem.

I use Firefox with the popular AdBlock Plus extension and have the rule *.google-analytics.* to block Google Analytics. If you have this rule enabled, it causes MegaShopBot to fail (it just displays blank results).

I haven't fully investigated it but think the underlying problem may possibly be this call in the function setTabOn which is found in "results.js". pageTracker is undefined when analytics is blocked. I think if you wrap this in a try/catch it'll then probably work. It may be worth you doing this as blocking Google Analytics is probably fairly common.

pageTracker._trackEvent( window.jsAnalyticsCategory, botName, window.jsAnalyticsSearchText)


This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351.7K Banking & Borrowing
  • 253.4K Reduce Debt & Boost Income
  • 454K Spending & Discounts
  • 244.6K Work, Benefits & Business
  • 600K Mortgages, Homes & Bills
  • 177.3K Life & Family
  • 258.3K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.