Skip to content
Unbondr Docs
Documentation / Build & deliver

BUILD & DELIVER

Set up Google Analytics & Tag Manager.

Connect a GA4 web stream or a Google Tag Manager container to your generated Next.js or Nuxt application, then verify tracking on your site.

Connect your project

  1. 1

    Open Analytics

    In a React or Vue project, select Analytics next to Data in the editor’s left sidebar.

  2. 2

    Choose how to install your tags

    For direct GA4 tracking, enter your web stream’s measurement ID (for example, G-ABC1234567). If Tag Manager handles GA4, enter just the web container ID (for example, GTM-ABC1234) and publish the container in Tag Manager.

  3. 3

    Save and deploy

    Choose Save changes. Publish the application to Vercel, or choose the full project ZIP from Export and deploy it yourself. Settings apply when you build a new version of the application.

Verify tracking on the deployed site

  1. 1

    Test visitor consent

    Open the deployed URL in a fresh private window. The application waits for Allow before loading the configured Google tags. A visitor who selects Decline can later reopen Analytics preferences and change that choice.

  2. 2

    Check a page view

    Select Allow, then open the Realtime report for your GA4 property or connect Google Tag Assistant to the deployed URL. If you use a container, check that its published version includes the tag you want to test.

  3. 3

    Check navigation between pages

    Visit another page using a link within your application. For direct GA4 tracking, enable page views for browser history changes in your web stream’s enhanced measurement settings.

Disconnect analytics

Open Analytics and select Disconnect to clear both IDs. Deploy a new build to remove the generated tags and consent prompt from the live site.