Skip to content

Instantly share code, notes, and snippets.

@michsch
Last active July 28, 2017 13:02
Show Gist options
  • Save michsch/4742ec32eb8024c66e97a0566a8d4624 to your computer and use it in GitHub Desktop.
Save michsch/4742ec32eb8024c66e97a0566a8d4624 to your computer and use it in GitHub Desktop.
Userlike-Integration
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