Your shopping cart and checkout pages must be hosted on the same domain
The confirmation page must be hosted on your own domain
must be added to the top of every webpage
Once verified, follow the integration instructions to add the code snippet below to your order confirmation page and customize the variables as needed. The snippet integration will allow Google to display the Google Customer Reviews opt-in on your website.
Badge Integration
expand_less
Optional: Use the badge to display your participation in the Google Customer Reviews program as well as show your seller rating on your site.
To get started, add the code snippet below to any page on your site and customize the variables as needed. After the code snippet has been added, verify the badge and attached text appear as expected on your site. Note: If there aren’t any seller ratings available, the message "no rating available" will appear. Learn more
window.renderBadge = function() { var ratingBadgeContainer = document.createElement("div"); document.body.appendChild(ratingBadgeContainer); window.gapi.load('ratingbadge', function() { window.gapi.ratingbadge.render(ratingBadgeContainer, {"merchant_id": 11111}); }); }
Comments
Comment #2
TR CreditAttribution: TR commentedPlease add code tags to your post so the code shows up correctly. See https://www.drupal.org/filter/tips
Comment #3
Stealth CreditAttribution: Stealth commentedComment #4
TR CreditAttribution: TR commentedSo you're trying to add JavaScript to specific pages on a Drupal site?
Not really an Ubercart issue...
See https://www.drupal.org/docs/8/theming-drupal-8/adding-stylesheets-css-an...