Skip to content

Instantly share code, notes, and snippets.

@LMG23
Created January 18, 2023 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LMG23/1269b2f94fa94f6a65047f0ed40147b6 to your computer and use it in GitHub Desktop.
Save LMG23/1269b2f94fa94f6a65047f0ed40147b6 to your computer and use it in GitHub Desktop.
window.usabilla_live('setEventCallback', function(category, action, label, value) {
ga(function() {
var trackers = ga.getAll();
for (var i = 0; i < trackers.length; i++) {
var trackerName = trackers[i].get('name');
ga(trackerName + '.send', 'event', 'Usabilla Live', action, label, value, {nonInteraction: true});
}
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment