User feedback show terms in the footer
See original GitHub issueFeature Description
Potential to add ‘terms and conditions’ section at the bottom of the user feedback notice as per discussion in Asana.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- If the current user has not opted in to Site Kit’s regular Analytics tracking, the user feedback survey (specifically only the first question) should also include a footer informing about the data being sent to Google.
- The copy should be: _ By continuing, you agree to allow Google to use your answers and account info to improve services, per our Privacy & Terms._ (this is intentionally slightly different from the text in the screenshot below, as we don’t send any system information)
- The word “Privacy” should link to
https://myaccount.google.com/privacypolicy?hl={currentLocale}
- The word “Terms” should link to
https://policies.google.com/terms?hl={currentLocale}
- The locale value used for these (and in principle any URLs using the
hl
query parameter) should only include the first two segments of the actual locale (see #2105). - It should have a separator above with equal spacing above and below, and generally it should follow the design from the following screenshot (which shows a demo survey in one of Google’s own services):
Implementation Brief
- Using
assets/js/googlesitekit/datastore/site/info.js
,- Update the
getGoogleSupportURL
selector to have the host of the URL dynamic (default value:support.google.com
) so that the host can be specified and not hardcoded tosupport.google.com
.
- Update the
- Using
assets/js/components/surveys/CurrentSurvey.js
,- Query the user data store via the
isTrackingEnabled
selector to check if tracking is enabled. - Check if
isTrackingEnabled
is still resolving, via thehasFinishedResolution
selector of the user data store and returnnull
if this is the case, meaning that the survey should not be displayed if it’s still resolving. - Get the “Privacy” and “Terms” URL by querying the site data store via the
getGoogleSupportURL
selector passing the appropriate parameters. - If user tracking is explicitly set to
false
, and the question ordinal is1
, then display the text as per the AC wrapped in ap
tag, which is itself wrapped within a container with thegooglesitekit-survey__footer
class name. For e.g:<div className="googlesitekit-survey__footer"> <p>...</p> </div>
- Query the user data store via the
- Using
assets/sass/components/surveys/_googlesitekit-surveys.scss
, style thep
tag within thegooglesitekit-survey__footer
class name. The p should have the following styles:- font size, font family same as the text below the first and last icons.
border-top
set to1px solid $c-iron
padding-top
of12px
margin-top
of-12px
so that the space before and after the paragraph is consistent and not have a big whitepace and also the form looks good when the footer is not present.
- Update the
CurrentSurvey
stories to include a story where the user has not enabled tracking so that the footer is visible. To disable tracking, use thereceiveGetTracking
action of the user data store, passingenabled: false
.
Test Coverage
- No new tests to be added.
Visual Regression Changes
- N/A
QA Brief
- Ensure the User Survey is being displayed (use the User Survey plugin to trigger a survey when the dashboard is loaded, see the User Feedback Bug Bash instructions for more info)
- Go to the settings and turn off tracking.
- Go back to the dashboard and verify that you see terms conditions like explained in the AC.
Changelog entry
- Show Terms of Service and Privacy Policy in User Feedback survey if the user hasn’t opted-in to tracking.
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Web Page Footers 101: Design Patterns and When to Use Each
Footers can be found at the bottom of almost every web page, and often take many forms, depending on the type of content...
Read more >Website Footer Design Best Practices: 27 Things to Put at the ...
Website footer design is about choosing what to include, with the intention of helping visitors. Here are 27 website footer design best practices...
Read more >Insert data from the form in a header or footer - Microsoft Support
On the View menu, click Header and Footer. Click the Print Settings tab. Under Headers and Footers, click Header or Footer. In the...
Read more >Word: Headers and Footers - GCFGlobal
Word has a variety of preset headers and footers you can use to enhance your document's design and layout. In our example, we'll...
Read more >How to Auto Populate a Form Field in the Header of a Word ...
This video shows a technique you can apply to get around MS Word not ... auto populate form field in footer, how to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@eugene-manuilov @tofumatt Replied to the comment - apologies, this was a mis-assumption from my end. So this will need a few more changes to reflect the updated requirements.
@wpdarren Thanks for pointing these out. Some clarifications:
cc @eugene-manuilov