cancel
Showing results for 
Search instead for 
Did you mean: 
CommunityJedi22
Community Manager
Community Manager

This article discusses how to validate Q&A. To learn more about implementing Q&A, click hereOnce Q&A has been implemented, there are steps you can take to verify that it is implemented correctly.

Verifying Placement of the Unified JavaScript File

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

CommunityJedi22_0-1756921040847.png

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.

 

Validating the Q&A Display via the API Call

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

CommunityJedi22_1-1756921074455.png

6. Select this result and click on Headers

CommunityJedi22_2-1756921095661.png

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]

 

 

Validating Q&A Submission via the API Call

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

CommunityJedi22_3-1756921120139.png

6. In the Filter field, enter writeservices.powerreviews.com

CommunityJedi22_4-1756921143619.png

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

CommunityJedi22_5-1756921184875.png

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)

CommunityJedi22_6-1756921212392.png

11. Find the new item now that contains the word answer and follow the same steps as above to validate the merchant_idlocale, and page_id values

CommunityJedi22_7-1756921234426.png

12. Fill out the form and click Submit

CommunityJedi22_8-1756921263873.png

Validating via Moderation

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

CommunityJedi22_9-1756921290472.png

3. Click on Native Questions

CommunityJedi22_10-1756921312723.png

4. Enter the Page ID of the product for which you submitted a test question

CommunityJedi22_11-1756921337717.png

5. Scroll down and click Search at the bottom of the page

CommunityJedi22_12-1756921358311.png

6. Find the test question you wrote on the resulting Moderation page

CommunityJedi22_13-1756921384823.png

7. Now click on Answers in the left-hand menu

CommunityJedi22_14-1756921409516.png

8. Enter the Page ID for the product again

CommunityJedi22_15-1756921432715.png

9. Scroll down and click Search at the bottom of the page

CommunityJedi22_16-1756921454923.png

10. Find the test answer you wrote on the resulting Moderation page

CommunityJedi22_17-1756921481948.png

If your test question and answer are present in Moderation as expected, this is an indication that Q&A is implemented properly.

Version history
Revision #:
2 of 2
Last update:
‎12-02-2025 04:32 PM
Updated by: