Skip to content

Adding NPS rating for docs pages#3469

Merged
amyblais merged 2 commits intomasterfrom
c-thermometer
Apr 6, 2020
Merged

Adding NPS rating for docs pages#3469
amyblais merged 2 commits intomasterfrom
c-thermometer

Conversation

@asaadmahmood
Copy link
Copy Markdown
Contributor

@asaadmahmood asaadmahmood commented Mar 20, 2020

Summary

Adding NPS rating for docs pages

Ticket Link

https://mattermost.atlassian.net/browse/MM-23098

@amyblais amyblais added the 2: Editor Review Requires review by an editor label Mar 20, 2020
@jasonblais jasonblais changed the title Adding customer thermometer for pages Adding NPS rating for docs pages Mar 20, 2020
@justinegeffen justinegeffen added the 1: PM Review Requires review by a product manager label Mar 20, 2020
@justinegeffen
Copy link
Copy Markdown
Contributor

Thanks @asaadmahmood, this is great! :)

Next step is that I am awaiting feedback from the Analytics team to confirm that I can add the events to our GA account. Adding a screenshot from my local build for reference as I am still setting up my web server.
Screen Shot 2020-03-20 at 21 40 18

@jasonblais
Copy link
Copy Markdown
Contributor

@asaadmahmood @justinegeffen Before merging, propose considering the following:

  1. Does a floating emoji icon on the page make sense or if it should be a more generic "feedback" icon (the ratings themselves can be emojis)
  2. If 4 rating options is the right number - from research, it seems it's often 2-3 options: https://community.mattermost.com/private-core/pl/pn971u37ntdaprcq1gnshjfk5c

Else, excited to see this progress 🎉

Also, this is for the rating score only, no text-based answers for now?

@asaadmahmood
Copy link
Copy Markdown
Contributor Author

@jasonblais

  1. Currently we don't have one icon, we just have those 4 icons floating around. So they occupy more space, yet are very apparent.
  2. We can go with 3.

Yes, for the score only, we can expand on this later.

@justinegeffen
Copy link
Copy Markdown
Contributor

Good questions, @jasonblais. I suggested to @asaadmahmood that we start with just emoji ratings to ensure the events are properly tracked by Google Analytics. Once we have confirmed this, the next iteration can include an on-page comment box (workflow for this has not yet been defined).

I think four provides a bigger range of feedback but by the same token it might be easier to start with three ratings and then refine them. 3/5.

@justinegeffen
Copy link
Copy Markdown
Contributor

I've added the event tracking code to the docs based on the content here: https://developers.google.com/analytics/devguides/collection/gtagjs/events. Next step is a review of the code and steps to validate. I've asked Kendall to take a look at it as I am getting an error when I build locally (not sure if that's format-related):

updating environment: [config changed] 338 added, 6 changed, 0 removed
/Users/justinegeffen/.local/share/virtualenvs/docs-qocg8X3N/lib/python3.7/site-packages/recommonmark/parser.py:65: UserWarning: Container node skipped: type=document                                                
  warn("Container node skipped: type={0}".format(mdnode.t))

@justinegeffen justinegeffen requested a review from ztrayner March 31, 2020 19:03
@justinegeffen
Copy link
Copy Markdown
Contributor

@ztrayner, I chatted to Kendall and she recommended that I get your review and next steps on this if you have the bandwidth. :)

@justinegeffen
Copy link
Copy Markdown
Contributor

Following up on this, @ztrayner, to find out if there's anything I can do on my side wrt testing. :)

@ztrayner
Copy link
Copy Markdown
Contributor

ztrayner commented Apr 3, 2020

@justinegeffen looks good, just be aware that you can sometimes run into data sampling issues with GA. This should give us a good idea though.

@justinegeffen
Copy link
Copy Markdown
Contributor

@justinegeffen looks good, just be aware that you can sometimes run into data sampling issues with GA. This should give us a good idea though.

Brilliant, thank you! :)

Copy link
Copy Markdown
Contributor

@justinegeffen justinegeffen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, thank you!

@justinegeffen
Copy link
Copy Markdown
Contributor

@asaadmahmood, I'm getting a build error when I build the docs, but it doesn't look like there are any errors on the page. Would you be open to checking the GA code before we merge this?

@justinegeffen justinegeffen removed the 2: Editor Review Requires review by an editor label Apr 5, 2020
@justinegeffen justinegeffen requested a review from amyblais April 6, 2020 07:13
@justinegeffen justinegeffen added the 2: Editor Review Requires review by an editor label Apr 6, 2020
@justinegeffen
Copy link
Copy Markdown
Contributor

@amyblais, I was wondering if you'd be able to take a look at this and let me know where I went wrong with the new code and why it's causing the build error? I think it's otherwise good to merge but don't want to break anything. :)

@asaadmahmood
Copy link
Copy Markdown
Contributor Author

@justinegeffen Can you show me the build error here?

@justinegeffen
Copy link
Copy Markdown
Contributor

hey @asaadmahmood, sure, it's this:

updating environment: [config changed] 338 added, 6 changed, 0 removed
/Users/justinegeffen/.local/share/virtualenvs/docs-qocg8X3N/lib/python3.7/site-packages/recommonmark/parser.py:65: UserWarning: Container node skipped: type=document
warn("Container node skipped: type={0}".format(mdnode.t))

And here it is in my terminal window:
Screen Shot 2020-04-06 at 09 17 19

@asaadmahmood
Copy link
Copy Markdown
Contributor Author

@justinegeffen I see that error on master aswell, are you sure you only see that error on this branch?

@justinegeffen
Copy link
Copy Markdown
Contributor

@justinegeffen I see that error on master aswell, are you sure you only see that error on this branch?

Great question, I didn't actually check that. Let me do another build.

@justinegeffen
Copy link
Copy Markdown
Contributor

Yah I see it on master too so I guess it's not related to these changes. Thanks for picking that up!

I think we should be good to merge once @amyblais has had a look. :) Thanks @asaadmahmood!

@amyblais amyblais removed their request for review April 6, 2020 12:46
@amyblais amyblais removed the 2: Editor Review Requires review by an editor label Apr 6, 2020
@amyblais
Copy link
Copy Markdown
Member

amyblais commented Apr 6, 2020

I don't have enough knowledge to review / test this.

@justinegeffen justinegeffen added 3: Reviews Complete All reviewers have approved the pull request and removed 1: PM Review Requires review by a product manager labels Apr 6, 2020
@justinegeffen
Copy link
Copy Markdown
Contributor

I don't have enough knowledge to review / test this.

Thanks @amyblais - I chatted to @jasonblais and I think we're good to go. :) Appreciate the feedback. :)

@amyblais amyblais merged commit 40ca928 into master Apr 6, 2020
@amyblais amyblais deleted the c-thermometer branch April 6, 2020 13:12
@amyblais amyblais removed the 3: Reviews Complete All reviewers have approved the pull request label Apr 6, 2020
justinegeffen pushed a commit that referenced this pull request Apr 6, 2020
* master:
  Add Plugin Labels and Prepackaged Plugin Info (#3395)
  Adding NPS rating for docs pages (#3469)
  Fix broken link in Bot Account Creation > Plugin (#3493)

# Conflicts:
#	source/myscript.js
justinegeffen added a commit that referenced this pull request Apr 6, 2020
jasonblais pushed a commit that referenced this pull request Apr 6, 2020
justinegeffen pushed a commit that referenced this pull request Apr 8, 2020
…/docs into justinegeffen-patch-7

* 'justinegeffen-patch-7' of https://github.com/mattermost/docs: (90 commits)
  Update integrations.rst
  Remove Oracle from Bitnami packages (#3491)
  Revert "Adding NPS rating for docs pages (#3469)" (#3495)
  Add Plugin Labels and Prepackaged Plugin Info (#3395)
  Adding NPS rating for docs pages (#3469)
  Fix broken link in Bot Account Creation > Plugin (#3493)
  Added Let's Encrypt clarification  (#2866)
  Update security.rst (#3434)
  Update sg_grammar-spelling-mechanics.rst (#3462)
  Update training.rst (#3485)
  Update release-faq.rst (#3484)
  Documenting how to change the default docker-compose network (#3480)
  Fixes GH-542-Moved : Request for Documentation: Add to interactive-messages documentation (#3482)
  Correct Code Block Formatting (#3477)
  Update mmctl-cli-tool.rst (#3481)
  FAQ on Archived Channels and data retention (#3470)
  Update desktop-changelog.rst (#3473)
  Update desktop-changelog.rst (#3471)
  Added Video to AD/LDAP Group Sync (#3450)
  Hint to `"skip_slack_parsing"` to ignore Slack-compatibility logic (#3427)
  ...

# Conflicts:
#	source/install/troubleshooting.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants