Created
April 10, 2012 21:35
-
-
Save apolzon/2354749 to your computer and use it in GitHub Desktop.
olark configuration.js
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
| = 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