# Send Shopify survey events to GA4

Send survey activity from Shopify checkout and customer account pages to Google Analytics 4 (GA4). You need a GA4 web data stream and permission to manage customer events in Shopify.

## Generate the pixel

1. In Google Analytics, open your web data stream and copy its measurement ID. It begins with `G-`.
2. In Shopoll, open **Installation** and select **GA4 Shopify pixel**. Enter the measurement ID and choose **Copy**.
3. In **Shopify Settings → Customer events**, add a custom pixel, paste the generated code and save it. Review its permissions and connect it.
4. In the checkout and accounts editor, open the Shopoll survey block and check that **Shopify pixel event detail** is set to **Question IDs** or **Include saved answers**. Save the block.

## What reaches your property

The code listens to the [Shopify survey events](/docs/shopify-app/shopify-web-pixel-events.md) and sends events such as `shopoll_answer_submitted` and `shopoll_poll_completed`. It sends `survey_id` and `survey_surface`, plus `question_id` for question events. An edited answer can add a submission without adding a completion.

This code sends IDs, not answer text. This also applies when the block shares answers with other pixels. The Google tag in the code does not send automatic page-view events. To group events by these parameters in reports, register them as event-scoped custom dimensions in GA4.

## Check a response

Use a development-store checkout outside the editor. Grant analytics permission, answer a question and finish the survey. Check Shopify Pixel Helper for the custom event, then look for `shopoll_poll_completed` in GA4 Realtime. If Shopify shows the event but GA4 does not, check the measurement ID, pixel connection and browser tracking settings.

For a Shopoll survey embedded on a regular website or Shopify storefront, use the [storefront Google Analytics integration](/docs/integrations/google-analytics.md).
