Vikram
Vikram

Reputation: 280

How can I stop _isMatchingDomain reference errors coming from Facebook referrer URLs?

This morning I got loads of javascript errors:

ReferenceError: _isMatchingDomain is not defined at parseCookie 
                at HTMLDocument.set [as cookie] 

Variable _isMatchingDomain is not on our website and is coming only from certain browsers:

Mozilla/5.0 (X11; Linux x86_64)

AppleWebKit/537.36 (KHTML, like Gecko)

Chrome/61.0.3163.100

Safari/537.36

Additional information from comments below:

The IPs triggering the error seem to be owned by Facebook. Possibly a Facebook crawler? (Chris Morbitzer)

The referrer URLs are all from Facebook (Rob Wierzbowski)

Does anyone know the source of this error, if it affects users, and how to fix?

Upvotes: 27

Views: 1177

Answers (2)

Achim
Achim

Reputation: 101

I think it is not related specifically to Piwik/Matomo, more like to general cookie setting/accessing. We are also using Piwik, but ReferenceError · _isMatchingDomain is not defined gets thrown here:

:1:32396:43parseCookie  
:1:32396HTMLDocument.set [as cookie]    
https://trk.opentrack.org/v2:1:1253Function.b.dc    
https://trk.opentrack.org/v2:1:1979Function.b.pu    
https://trk.opentrack.org/v2e:1:121 
https://trk.opentrack.org/v2e:1:326

Upvotes: 2

Chris Morbitzer
Chris Morbitzer

Reputation: 121

We're getting the same thing too. All of the request IPs come from Facebook-owned addresses so we think they are the crawlers executing some script. It's irritating to say the least.

Edit: I'm wondering if this has something to do with also using Piwik/Matomo? Here's our full stacktrace in one example:

:1:32551:43parseCookie
:1:32551HTMLDocument.set [as cookie]
https:///piwik.js:42:141c0
https:///piwik.js:48:240bo
https:///piwik.js:65:146Q.setCookieDomain
https:///piwik.js:23:60ac
https:///piwik.js:70:900c
https:///piwik.js:71:348aa
https:///piwik.js:72:279Object.addTracker
https:///piwik.js:75:386

Upvotes: 11

Related Questions