Use analytics.identify instead of the old utility function

This commit is contained in:
Renzo Lucioni
2014-11-21 12:53:59 -05:00
parent 73dd6fe2c7
commit 03f38dd8b4
2 changed files with 4 additions and 8 deletions

View File

@@ -40,10 +40,3 @@ window.rewriteStaticLinks = function(content, from, to) {
var regex = new RegExp("(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}([-a-zA-Z0-9@:%_\+.~#?&//=]*))?"+fromRe, 'g');
return content.replace(regex, replacer);
};
window.identifyUser = function(userID, email, username) {
analytics.identify(userID, {
email: email,
username: username
});
};