• There appears to be a problem with the Facebook button in the latest release. When someone clicks on the button, the folloing error appears in the console:

    ReferenceError: _gaq is not defined
    Plugin.prototype.openPopup()
    jquery.sharrre.min.js:41
    .click()
    fish-tale-radio:316
    Plugin.prototype.init/<()
    jquery.sharrre.min.js:19
    m.event.dispatch()
    jquery.js:4
    m.event.add/r.handle()
    jquery.js:4

    It will post a generic link to Facebook, but not the post that is being shared.

    https://wordpress.org/plugins/genesis-simple-share/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Nick C

    (@modernnerd)

    Hi Victor

    Thanks very much for reporting this.

    The “_gaq is not defined” error is an issue that affects sites not using Google Analytics, but it should not prevent the Facebook button from sharing the correct page.

    Are you able to share a link to a page that displays this issue? I’d be happy to take a closer look for you.

    macrunner

    (@macrunner)

    Hi,

    I confirm the error:
    jquery.sharrre.min.js:41:465 ReferenceError: Can’t find variable: _gaq

    This error is reported by Chrome and Safari.
    This happens with any child theme Genesis, even with Genesis Sample.

    Thanks

    Plugin Support Nick C

    (@modernnerd)

    Hi, Macrunner.

    Genesis Simple Share currently uses a Google Analytics tracking feature provided by the Sharrre library so that you can record which share button someone pressed in Analytics. This is helpful to learn what button is the most popular for your site, for example: http://sharrre.com/track-social.html

    If Analytics is not set up for your site, you’ll see the “Can’t find variable: _gaq” message in your console if you press one of the share buttons, but this should otherwise not affect the sharing functionality.

    Currently, it’s not possible to disable the Google Analytics integration entirely without editing the plugin. (You would need to set enableTracking to false on this line in front-end.php.) Note that plugin updates will overwrite this change, though.)

    I hope that helps to explain things, but feel free to ask if you need further help with this.

    macrunner

    (@macrunner)

    Hi Nick,
    thanks for the clarification 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘jQuery Reference Error’ is closed to new replies.