Last active
July 28, 2017 13:02
-
-
Save michsch/4742ec32eb8024c66e97a0566a8d4624 to your computer and use it in GitHub Desktop.
Userlike-Integration
This file contains hidden or 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
const userlikeUrl = '//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/d050a6fa8bdcd3986a4892b683ae79565fa04643cbec254c91b489c49806bdef.js' | |
window.userlikeTrackingEvent = function (event_name, global_ctx, session_ctx) { | |
console.log('userlikeTrackingEvent: name=%s global_ctx=%o session_ctx=%o', | |
event_name, | |
global_ctx, | |
session_ctx | |
) | |
} | |
class Userlike { | |
constructor () { | |
$.getScript( | |
userlikeUrl, | |
this._userlikeLoaded.bind(this) | |
) | |
} | |
_userlikeLoaded () { | |
console.log('Userlike loaded!') | |
} | |
} | |
const unserlike = new Userlike() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment