on
09-03-2025
01:45 PM
- edited on
12-02-2025
04:32 PM
by
CommunityMod_WM
This article discusses how to validate Q&A. To learn more about implementing Q&A, click here. Once Q&A has been implemented, there are steps you can take to verify that it is implemented correctly.
The location of the unified JavaScript file on the page is important. PowerReviews' best practice is to place this call within the body of the page, not the head. To verify the location of this file, follow these steps:
1. Open up Developer Tools in your web browser (in Google Chrome, you can use the shortcut Cmd+Option+I to open on Mac, or Ctrl+Shift+I to open on Windows)
2. Either load the PDP for the first time, or reload if you were already on this page
3. Select the Elements tab within the Developer Tools window
4. Use Ctrl+F to open the find dialogue and search for ui.js
5. Ensure this is located within the <body> tags on the page. Placing the ui.js within the head of the page can lead to unexpected issues.
If the PowerReviews code has been added properly and is functional, you should be able to see the call made to the PowerReviews Display API. To validate this call, follow these steps:
1. Open up Developer Tools in your web browser (in Google Chrome, you can use the shortcut Cmd+Option+I to open on Mac, or Ctrl+Shift+I to open on Windows)
2. Either load the PDP for the first time, or reload if you were already on this page
3. Select the Network tab within the Developer Tools window
4. In the Filter field, enter display.powerreviews.com
5. Look for the API call that contains the word questions
6. Select this result and click on Headers
7. This API call is structured in the following manner:
https://display.powerreviews.com/m/[merchant_id]/l/[locale]/product/[page_id]/questions?_noconfig=true&apikey=[api_key]
1. Open up Developer Tools in your web browser (in Google Chrome, you can use the shortcut Cmd+Option+I to open on Mac, or Ctrl+Shift+I to open on Windows)
2. Either load the PDP for the first time, or reload if you were already on this page
3. Select the Network tab within the Developer Tools window
4. Scroll down on the PDP to where the Q&A Display is located
5. Click on the Ask a Question button
6. In the Filter field, enter writeservices.powerreviews.com
7. Select the results that include the word question and click on Payload
8. Confirm that the merchant_id and locale values match the ones provided by PowerReviews. Also ,ensure that the page_id is the correct value for the product on the page.
9. Fill out the form and click Submit
10. In the Q&A Display, find an existing question and click on Add your answer (you may need to wait for a test question to publish)
11. Find the new item now that contains the word answer and follow the same steps as above to validate the merchant_id, locale, and page_id values
12. Fill out the form and click Submit
If you submitted a test question and answer through the above steps, you can validate that these were received without errors by checking in Moderation in the PowerReviews Portal. (This method of testing will require that you have a valid login to the PowerReviews Portal.)
1. Log into the PowerReviews Portal
2. Click Q&A in the left-hand menu
3. Click on Native Questions
4. Enter the Page ID of the product for which you submitted a test question
5. Scroll down and click Search at the bottom of the page
6. Find the test question you wrote on the resulting Moderation page
7. Now click on Answers in the left-hand menu
8. Enter the Page ID for the product again
9. Scroll down and click Search at the bottom of the page
10. Find the test answer you wrote on the resulting Moderation page
If your test question and answer are present in Moderation as expected, this is an indication that Q&A is implemented properly.