Google Analytics
Configure Google Analytics to track storefront traffic, e-commerce conversions, and customer behavior.
Google Analytics integration adds automatic tracking to your storefront, including page views, product impressions, cart activity, checkout steps, and completed purchases. PrintNow supports both Google Analytics 4 (GA4) properties and legacy Universal Analytics (UA) properties, with full e-commerce event tracking built in.
When configured with a GA4 property ID, the storefront automatically fires standard e-commerce events that appear in your Google Analytics reports without any additional setup. This gives you visibility into how customers browse products, add items to their cart, and complete purchases.
Configure Google Analytics
- From your Unified Admin, go to Settings > Integrations > Google Analytics.
- Enter your Property Id (e.g.,
G-XXXXXXXXXXfor GA4). - Click Save.
Settings
| Field | Description |
|---|---|
| Property Id | Your Google Analytics property ID. For GA4 properties, use the Measurement ID format (G-XXXXXXXXXX). Legacy Universal Analytics IDs (UA-XXXXXX-X) are also supported but will use the older analytics.js library instead of gtag.js. When empty, no analytics tracking is added to the storefront. |
Tracked Events
When a GA4 property ID is configured, the storefront automatically tracks the following e-commerce events:
| Event | When Fired | Data Included |
|---|---|---|
view_item | Customer views a product detail page | Product ID, name, category, price |
view_cart | Customer views the shopping cart | Currency, cart value, list of items with prices and quantities |
add_to_cart | Customer adds a product to the cart | Currency, item value, product details |
remove_from_cart | Customer removes a product from the cart | Currency, item value, product details |
begin_checkout | Customer starts the checkout process | Currency, cart value, coupon code, list of items |
add_shipping_info | Customer submits shipping information | Shipping details |
add_payment_info | Customer submits payment information | Payment details |
purchase | Order is completed (order confirmation page) | Transaction ID, revenue, tax, shipping, coupon, list of purchased items |
search | Customer performs a product search | Search term |
login | Customer logs in | Login method |
signup | Customer creates an account | Signup method |
GA4 vs Universal Analytics
The storefront detects your property type based on the ID format:
- GA4 (
G-XXXXXXXXXX): Uses the gtag.js library. Fires structured GA4 e-commerce events with currency, item arrays, and transaction details. This is the recommended setup. - Universal Analytics (
UA-XXXXXX-X): Uses the legacy analytics.js library. Supports standard e-commerce and enhanced e-commerce tracking (product impressions, checkout steps, purchase tracking). Universal Analytics properties stopped processing data on July 1, 2024.
Associations
Print Store
| Area | Effect |
|---|---|
| All Pages (Master Page) | The GA4 tracking script is registered on every storefront page via PrintnowDisplay.Master. This adds the gtag.js snippet to the page header with your property ID, enabling automatic page view tracking across the entire storefront. |
| Product Detail Pages | Fires view_item events with product ID, name, category hierarchy, SKU, and price when customers view product details. |
| Shopping Cart | Fires view_cart, add_to_cart, and remove_from_cart events with full item details and cart totals. |
| Checkout | Fires begin_checkout on the checkout page with cart contents, coupon codes, and totals. Additional events fire for shipping and payment info submission. |
| Order Confirmation | Fires purchase event on the order details page when referred from checkout. Includes transaction ID, revenue, tax, shipping, coupon, and all ordered items with quantities and prices. |
| Search | Fires search event with the search term when customers use the product search feature. |
| Login / Signup | Fires login and signup events with the authentication method when customers sign in or create accounts. |
Print Editor
| Area | Effect |
|---|---|
| Editor Page | The GA4 tracking script is also registered on the Print Editor page (Editor.aspx), enabling page view tracking when customers open the design editor. |
Related Pages
- Google Tag Manager — deploy additional marketing tags using the shared dataLayer