-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help: Track page views while users are chatting with olark operators. #1720
Conversation
c52b64c
to
19fa557
Compare
@@ -373,3 +377,13 @@ const olark = { | |||
|
|||
emitter( olark ); | |||
olark.initialize(); | |||
|
|||
export function trackPageViews( context, next ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd call this notifyLocation
or something like that instead. Reading it in boot
it made me think of stats instead.
39e09e9
to
fd02577
Compare
I found some issues here after doing some more testing. I'll submit for review again after its fixed. |
18fed93
to
3283d17
Compare
@mtias I renamed the function and fixed an issue with notifying with the wrong url. Please review again |
@@ -177,6 +178,9 @@ const olark = { | |||
debug( 'Nickname: ' + visitorNickname ); | |||
debug( 'Group: ' + group ); | |||
|
|||
// system.give_location_to_operator doesn't work well with our single page app so we do | |||
// it our selves using page context in the notifyLocation function | |||
olarkApi.configure( 'system.give_location_to_operator', false ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for this comment - this is a great comment!
@omarjackman looks like a great feature - I'm sure the HEs will love it! Anyway, check out my note on the URL piece, that seems a bit risky the way it's written (not like it would break anything if a bug appeared though) |
3283d17
to
73b1fdc
Compare
@dmsnell I made the suggested changes. |
I'll be merging this tomorrow AM if there are no objections by then |
The change seems reasonable to me. 🚢 |
Help: Track page views while users are chatting with olark operators.
Had to revert this because of a missing |
This pull request allows Happiness Engineers to see the URL of the page being viewed by the user they are chatting with.
Olark operators will now see something similar to this:
Fixes #1506