Answers
Aug 05, 2020 - 12:15 PM
When you add Answerbase Q&A to your product pages of your ecommerce store, you can either integrate using JavaScript or integrate using our API.
Implementing with the JavaScript Widget
JavaScript by far is the most common approach because it takes the least amount of time to implement. Google actually does crawl/index content that is dynamically generated by JavaScript, see an article here covering results around that:
https://searchengineland.com/tested-g...
So, your product page will start showing up for new phrases/queries that are represented in the dynamically generated Q&A content that loads via JavaScript on your page. This is a quick and easy way to implement product Q&A and will still show you healthy SEO benefits and growth in search traffic as that content grows.
Implementing Using Answerbase API
If you're team wants the actual markup on the page (which is the most optimal integration, but not necessary to get healthy organic traffic growth), you'd typically utilize our API in order to manage that. You can see that we have a method to pull a question list for specific product in our API documentation. The most common parameters to use in that call are these:
For the form to ask a question, you can still utilize our Ecommerce Product Q&A Widget and just make sure you set the "data-show-question-list" parameter value to false. That ensures you don't have to recreate the ask question form and can just utilize ours, while still having the actual Q&A content rendered on your page.
Implementing with the JavaScript Widget
JavaScript by far is the most common approach because it takes the least amount of time to implement. Google actually does crawl/index content that is dynamically generated by JavaScript, see an article here covering results around that:
https://searchengineland.com/tested-g...
So, your product page will start showing up for new phrases/queries that are represented in the dynamically generated Q&A content that loads via JavaScript on your page. This is a quick and easy way to implement product Q&A and will still show you healthy SEO benefits and growth in search traffic as that content grows.
Implementing Using Answerbase API
If you're team wants the actual markup on the page (which is the most optimal integration, but not necessary to get healthy organic traffic growth), you'd typically utilize our API in order to manage that. You can see that we have a method to pull a question list for specific product in our API documentation. The most common parameters to use in that call are these:
- productsku: This tells the API call that you only want questions returned that are associated with a specific product sku
- orderby: Typically customers will use the "mostpopular" value here so we always show the Q&A that is engaged with the most
- fullquestiondetails: Typically customers would set this value as "true" so they can show both the question and answers on the product page
For the form to ask a question, you can still utilize our Ecommerce Product Q&A Widget and just make sure you set the "data-show-question-list" parameter value to false. That ensures you don't have to recreate the ask question form and can just utilize ours, while still having the actual Q&A content rendered on your page.
Add New Comment