Support » Plugin: Google Analyticator » [Bug] external-tracking.js interferes with some themes

  • Resolved Jesin A



    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
    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 loop

    if(t==undefined || t=="")

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Bug] external-tracking.js interferes with some themes’ is closed to new replies.