Skip to content

Instantly share code, notes, and snippets.

@apolzon
Created April 10, 2012 21:35
Show Gist options
  • Select an option

  • Save apolzon/2354749 to your computer and use it in GitHub Desktop.

Select an option

Save apolzon/2354749 to your computer and use it in GitHub Desktop.
olark configuration.js
= javascript_include_tag "external/olark.onready"
:javascript
$(document).ready(function(){
if (typeof(olark) !== "undefined") {
olark.identify('5955-991-10-7137');
olark("api.visitor.updateFullName", {fullName: "#{current_user.first_name} #{current_user.last_name}"});
olark("api.visitor.updateEmailAddress", {emailAddress: "#{current_user.email}"});
olark('api.chat.updateVisitorNickname', {snippet: "MY AWESOME CUSTOM NICK", hidesDefault: true});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment