• Resolved Bas Schuiling

    (@basszje)


    Hi there,

    I have a question regarding the frontend.js script. I’m using latest WP and latest version of the plugin. I saw in support there were some issues in previous version with the JS tracking of clicks, maybe this is related.

    When I select ‘ Track outbound clicks and download links ‘ as ‘Using Javascript (recommended)’ it crashes in Firefox and Firefox for Android on (JS Console):

    ReferenceError: event is not defined frontend.js:102:3

    That’s this function:

    function __gaTrackerTrackedClick()

    When I look at the __gaTrackerClickEvent that calls that function I notice the referenced event is not passed to that function, so in my eyes the crash is entirely logic. Possibly other browsers see event as a global var.

    When I change the code to pass the event ( __gaTrackerTrackedClick (event) ) on line 203 and change the function to accept the var all seems to be working fine.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author chriscct7

    (@chriscct7)

    Hi there,
    Thanks for the report.

    This change is included in the version of MonsterInsights shipping tomorrow

    -Chris

    Thread Starter Bas Schuiling

    (@basszje)

    Hi Chris,

    Thanks for the fast response. Excellent timing for the update as well ??

    Plugin Author chriscct7

    (@chriscct7)

    Just as a note, MonsterInsights is based in the Eastern Standard US timezone (I realized someone could be behind us in time right after posting that), so tomorrow for us is Thursday, May 10.

    Thread Starter Bas Schuiling

    (@basszje)

    In Ukraine, May 10th is on a wednesday.

    Plugin Author chriscct7

    (@chriscct7)

    I’m sorry. I typo’d the date. Supposed to be the 11th.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Firefox crashes on Frontend __gaTrackerTrackedClick event’ is closed to new replies.