Skip to main content
BlooTrue
no code neededunlimited viewsfree forever

Free CarGurus Review Widgets for Next.js / React

Embed CarGurus reviews on any Next.js / React page in 60 seconds — next/script component, paste, save. What customers say about your dealership on CarGurus, on your own site.

Build Your CarGurus Review Widget

CarGurus

Key facts: 60-second install on Next.js / React · free forever, no plugin needed · installs via the next/script component · no view caps on any plan · daily review auto-sync on paid plans · schema.org markup on paid plans

Last updated ·by Mike Ragimov

CarGurus reviews on a Next.js dealer website

Dealer groups that hire developers often get a custom Next.js site. Each rooftop's page can show that store's CarGurus dealer reviews, which shoppers already know from their searches.

How does the code go into Next.js?

Load the script with next/script and write class as className in the snippet, or React drops the attribute.

Where on a store page?

Under the store's address and hours, next to the button that opens its inventory.

Example

A group with four used-car stores

Each store page renders the widget built from that store's own CarGurus dealer page.

SEO + AI schema · paid plans

Review schema markup, on paid plans

Paid widgets add schema.org Review and AggregateRating JSON-LD to the page they sit on, so search engines and AI answer engines can read your CarGurus reviews as structured data. Google does not show review stars for reviews a business shows about itself, so the gain is readability, not stars. The free plan shows the reviews without the schema. See how the schema works

How to Add CarGurus Reviews to Next.js / React

Connect your CarGurus profile in BlooTrue, pick a style, then paste one embed code into the next/script component on Next.js / React and publish.

  1. 1

    In app/layout.tsx import Script from next/script and add the BlooTrue loader once inside the body, with strategy set to afterInteractive.

  2. 2

    Drop the widget div into any page or component where the reviews should appear.

  3. 3

    Change class to className on that div — the snippet is HTML and JSX will not accept class.

  4. 4

    Deploy. The loader watches the DOM, so the widget survives client-side navigation too.

A raw <script> tag pasted into a component will not execute, which is what next/script is for — and the snippet's class attribute has to become className or React drops it.

Where the Code Goes on Next.js / React

In a Next.js app the snippet splits in two. The loader goes in once, in app/layout.tsx, as a next/script component with strategy set to afterInteractive so it survives client-side navigation.

The div goes wherever the reviews belong, in any page or component. The one edit the pasted code needs is class becoming className, because the snippet is HTML and JSX will not accept class. The widget takes the width of its parent element, so a max-width wrapper is the usual way to size it.

If the widget does not show on Next.js / React

  • If nothing renders, check the div uses className rather than class — React silently drops the class attribute and the loader then finds nothing to mount.
  • A raw script tag pasted straight into a component will not execute. Use next/script with strategy afterInteractive instead.
  • If the widget shows on a hard refresh but not after in-app navigation, the loader was placed in a page rather than in the layout. Move it to app/layout.tsx so it mounts once for the whole app.

Still blank? Our help article Widget not showing covers the checks that apply on every site.

Official documentation: Next.js / React: Script Component

CarGurus Review Widget for Next.js / React — Free, No Plugin

Embed CarGurus reviews on any Next.js / React page with a single copy-paste embed code. What customers say about your dealership on CarGurus, on your own site. Installs via the next/script component.

Where CarGurus reviews help most on Next.js / React

Dealer platforms and custom sites are usually built on an inventory feed with a template for each vehicle and one for each store.

Render the CarGurus widget on the store template from that rooftop's CarGurus page, and a short rating line on vehicle templates that points to the selling store. Search results and comparison grids show cars from several stores at once, so keep the widget off them. When a store closes or changes hands, remove its widget rather than keep reviews that belong to someone else.

About CarGurus reviews in this widget

The CarGurus widget shows customers' reviews of one dealership from its CarGurus dealer page, with the rating out of 5 and the review count CarGurus shows for that dealer in the header. The reviews describe the dealership, its people and the buying experience, not a particular car, so they suit home, finance, contact and vehicle pages alike. The usual mistake is pasting a car listing: the builder needs the dealer's page, cargurus.com/Cars/m- followed by the dealer's name and an sp number. The header is CarGurus's own figure, not an average of the reviews shown.

CarGurus Widget on Next.js / React — FAQ

Why doesn't a script tag inside a component run?
React won't execute it; next/script loads it.
One widget for the whole group?
No. CarGurus rates each dealership, so each store gets its own widget.
Whose rating is in the header?
CarGurus's own rating and review count for that dealer.

Ready to Put CarGurus Reviews on Your Next.js / React Pages?

Free forever. No plugin. 100+ widget styles. Set up in 60 seconds.

Free CarGurus Review Widget

What BlooTrue customers say