[Resolved] [Bug] external-tracking.js interferes with some themes
In this topic
OP had a problem getting the mobile menu of the Neutro theme work.
Firebug’s console displayed a error pointing to the external-tracking.min.js file whenever this menu was clicked.
ReferenceError: analyticsSnippet is not defined http://www.normanlamont.com/wordpress/wp-content/plugins/google-analyticator/external-tracking.min.js?ver=184.108.40.206 Line 1
The problem is caused by how the external-tracking.js / external-tracking.min.js files handle an empty “href” attribute.
Those files only had the following condition
but the mobile menu of Neutro had a href attribute with nothing in it.
<a id="mobile-secondary-menu-btn" class="btn btn-neutro" href=""><span>Menu</span></a>
Add an additional check in the
if(t==undefined || t=="")
- The topic ‘[Resolved] [Bug] external-tracking.js interferes with some themes’ is closed to new replies.