question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve instructions in Optimize setup

See original GitHub issue

Feature Description

Currently, the Optimize setup screen includes a sentence that reads “Please copy and paste your Optimize ID to complete your setup. You can locate this here.”:

Screen Shot 2021-09-16 at 2 53 48 PM

“Optimize ID” is not correct; it should be “Container ID.”

In addition, “You can locate this here” currently links to https://support.google.com/optimize/answer/6211921?hl=en-US, which is a long article about Optimize setup that doesn’t include explicit instructions on where to find the Container ID. It would make more sense to link to https://optimize.google.com/optimize/home/?authuser=1&hl=en-US#/accounts, which is the main account page for Optimize and includes a list of all Containers and their IDs:

Screen Shot 2021-09-16 at 2 56 54 PM

I recommend changing the text to read:

“Please copy and paste your Container ID in the field below to complete Optimize setup. You can locate this ID here.” and link the final sentence to https://optimize.google.com/optimize/home/?authuser=1&hl=en-US#/accounts.


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • User-facing labels/references to “Optimize ID” for the Optimize module should be updated to Optimize Container ID in setup and settings views
    • The settings view label “Your Optimize Container ID” should also be updated for consistency
  • The text “You can locate this here.” should be updated as follows
    • Should link to the Optimize module’s service URL with a path of /accounts
    • Should not have a trailing full-stop

Implementation Brief

	const accountURL = useSelect( ( select ) =>
		select( MODULES_OPTIMIZE ).getServiceURL( { path: '/accounts' } )
	);

here: https://github.com/google/site-kit-wp/blob/a86ba4b109defc7d4c89289b2ca0589da870e10b/assets/js/modules/optimize/components/common/OptimizeIDFieldInstructions.js#L34-L38 and configure Link to use new accountURL

Test Coverage

Update/fix all relevant tests. (see /tests/e2e/specs/modules/optimize/activation.test.js)

QA Brief

  • In Optimize setup screen check ‘You can locate this here’ link to lead to the /accounts page without a full-stop at the end
  • Check Optimize Container ID to appear instead of Optimize ID in the text/labels/notices

Changelog entry

  • Improve instructions in Optimize setup and settings.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
eugene-manuilovcommented, Nov 21, 2022
  • Change the link according to optimize account by using select( CORE_USER ).getAccountChooserURL( serviceURL ); (serviceURL = 'https://optimize.google.com/optimize/home/') here:

@sashadoes there is no need to use the getAccountChooserURL selector because we already have the getServiceURL selector in the Optimize module that we should use to get the appropriate link to the /accounts page. https://github.com/google/site-kit-wp/blob/57c1d4fb61b6beada129515df8466e29e95feef2/assets/js/modules/optimize/datastore/service.js#L43

1reaction
eugene-manuilovcommented, Nov 19, 2022
  • Change the link according to/accounts here:

@sashadoes the link that you reference to leads to the support page which is not what we need. AC says: “link to the Optimize module’s service URL with a path of /accounts”. So, we need to rework the link to lead to the service URL, not to the support one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Optimize installation overview - Google Support
Optimize is installed by adding a small snippet of code to your website to display new experiences to your visitors. There are different...
Read more >
Setting Up the Classroom to Optimize Learning Opportunities ...
What are some tips to set up and organize the classroom to optimize learning opportunities and effective instruction?
Read more >
Optimizing Use of School Resources to Improve Student ...
States, districts and school leaders can work together to optimize resources and improve student learning.
Read more >
Optimize Student Learning
We are best positioned to optimize memory through “desirable difficulties.” In this sense, learning is about challenge, failure, understanding why something ...
Read more >
Defragment your Windows 10 PC - Microsoft Support
Optimizing your drives can help your PC run smoother and boot up faster. To optimize them: ... Select Defragment and Optimize Drives. Select...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found