{"size": 1174, "ext": "js", "max_stars_repo_path": "disqus_tracking.js", "max_stars_repo_name": "thyngster/universalanalytics", "max_stars_repo_stars_event_min_datetime": "2015-08-10T21:52:24.000Z", "max_stars_repo_stars_event_max_datetime": "2020-11-04T11:54:06.000Z", "max_issues_repo_path": "disqus_tracking.js", "max_issues_repo_name": "thyngster/universalanalytics", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "disqus_tracking.js", "max_forks_repo_name": "thyngster/universalanalytics", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 9, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 43.4814814815, "max_line_length": 128, "alphanum_fraction": 0.6456558773}
/**
* disqus_tracking.js v1.0.0 - 2013-11-16
* https://github.com/thyngster/forms_cross_domains.js
* (c) 2013 David Vallejo ( @thyng )
* license: www.opensource.org/licenses/mit-license.php
*
* 
* If using ga.js, just change the ga() call to _gaq.push(['trackEvent','Disqus',{ACTION}, windows.location.href]);
* Disqus is loaded asynchronously and callbacks configuration needs to be set before Disqus si loaded so we basically 
* what we're doing is reseting it with the new callback values on winwdow.load event ( cross-browser compatibility ).
* Modify Event category, action and label to fit your needs.
*
*/

window.onload = function(){
    if(window.DISQUS){
        DISQUS.reset({
              reload: true,
              config: function () {
              this.callbacks.onNewComment = [function(){ ga('send', 'event', 'Disqus', 'New Comment', window.location.href); }];
              this.callbacks.onPaginate = [function(e){ ga('send', 'event', 'Disqus', 'Pagination', window.location.href); }];
              this.callbacks.onPaginate = [function(e){ ga('send', 'event', 'Disqus', 'User Logged', window.location.href); }];
              }
         });
    }
};
