Skip to content

Instantly share code, notes, and snippets.

@LMG23
Created January 24, 2023 14: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/68a54cf412bbf7eb0ebac27cdee6ace6 to your computer and use it in GitHub Desktop.
Save LMG23/68a54cf412bbf7eb0ebac27cdee6ace6 to your computer and use it in GitHub Desktop.
<script>
window.usabilla_live('setEventCallback', function(category,action,label,value,userData){
if (typeof action !== 'undefined') {
//Append data to data layer on all actions
window.dataLayer.push({
'event':'Usabilla',
'category': category,
'action': action,
'label': label,
'value': value,
'userData': userData
});
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment