By WooServers on Saturday, 07 July 2018
Posted in General
Replies 1
Likes 0
Views 389
Votes 0
Hello everyone,

Has anyone been able to set up "Events" tracking for EasyDiscuss / EasyBlog to track the number of comments posted by visitors in GA or other tools?

Please advise where to insert JS 'onclick' code to track those events.

Thank you.
There are javascript triggers if you want to capture events. In EasyBlog,

[gist]
EasyBlog.ready(function($) {

$('[data-eb-comments]').on('commentAdded', function() {
// Insert your codes here
});
});
[/gist]

Likewise with EasyDiscuss, you could write something like this:

[gist]
ed.require(['edq', 'easydiscuss'], function($, EasyDiscuss) {
$(document).on('onSubmitPost', function() {
// Insert codes here
});
});
[/gist]
·
Saturday, 07 July 2018 13:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post