Guide: Connect Your GA4 Account To Your Shopify Checkout Extension
How to: Seamlessly collect Zigpoll survey data in your GA4 analytics dashboard.
Shopify has announced their intention to move all stores to the new Checkout Extension version of their Checkout pages by August of 2025.
Once you set up your Zigpoll Checkout Extension you may want to connect the data to your GA4 dashboard. To set this up, follow the steps below:
Step 1. Create a pixel
To set up your custom pixel, follow the steps below:
- Go to your Shopify Dashboard. Click Settings → Customer Events
- Click Add custom pixel
- Put the following javascript code into the code block.
NOTE: Replace G-XXXX with your GA4 ID.
You can find your GA4 ID in GA4 by going to:
Property settings → Data collection and modification → Data Streams → Click applicable stream → copy 'Measurement ID'
/* Zigpoll GA Integration Pixel */
var f = document.getElementsByTagName('script')[0];
var j = document.createElement('script');
j.async = true;
j.src='https://www.googletagmanager.com/gtag/js?id=G-XXXX';
f.parentNode.insertBefore(j, f);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXX');
analytics.subscribe("zigpoll-event", (event) => {
const { customData } = event;
gtag("event", customData.action, {
event_category: customData.category,
event_label: customData.label,
order_id: customData.order_id,
zigpoll_response: customData.response,
zigpoll_question: customData.question
});
});
Check out the video below for a visual guide of the pixel setup process.
Shopify only allows web pixels on the Thank You page as of now, we hope they will allow web pixels on the Order Status page in the future and will update this page accordingly if things change.
Step 2. Setup your custom dimensions in GA4
To set up your custom dimensions within GA4, follow the steps below:
- Go to your GA4 Dashboard.
- Click Admin → Custom Definitions
- Click Add custom dimension
- Enter the dimensions below:
-
Dimension name: Zigpoll Response
Event parameter: zigpoll_response -
Dimension name: Zigpoll Question
Event parameter: zigpoll_question
Check out the video below for a visual guide of the GA4 custom dimension setup process.
If you have any feedback or questions about our Checkout Extension, or if you have any questions about Zigpoll in general, don't hesitate to get in touch.