We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 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!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
MegaShopBot and Adblock with Google Analytics Rule
bonzer
Posts: 399 Forumite
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)
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)
0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.6K Banking & Borrowing
- 254.2K Reduce Debt & Boost Income
- 455.1K Spending & Discounts
- 246.7K Work, Benefits & Business
- 603.1K Mortgages, Homes & Bills
- 178.1K Life & Family
- 260.7K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards