Last active
June 5, 2018 16:57
-
-
Save keshcreations/f7e1022b1d06f0d8ac8c75ddad08a777 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.usabilla_live("setEventCallback", function(category, action, label, value) { | |
var newURL = window.location.protocol + "//" + window.location.hostname; | |
var type = null; | |
switch (action) { | |
case "Campaign:Open": | |
type = "feedback"; | |
history.replaceState(null, null, newURL); | |
break; | |
case "Campaign:Success": | |
type = "feedback"; | |
break; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment