Google Analytics 4 shows the visits, searches and sales from your galleries in your own Google Analytics property. It's one of the Integrations, on the Pro and Max plans.
Find your measurement ID
- In Google Analytics, open Admin.
- Under Data collection and modification, choose Data streams, then your web stream. If you don't have one, add a Web stream with your gallery's address, such as
yourname.photohawk.comor your own domain. - Copy the Measurement ID. It starts with
G-, likeG-ABC123DEF4.
Google's help: Find your Google tag ID.
Only a GA4 measurement ID works. An old Universal Analytics ID (UA-…) or a Google Tag Manager container ID (GTM-…) isn't accepted, and you don't need Google's tag code: Photohawk adds it.
Add it in Photohawk
- Go to Settings in the main menu, then the Integrations tab.
- Paste the ID into Google Analytics 4.
- Choose Save integrations.
Every gallery in your workspace now uses it. To send one gallery to a different property, or leave it out, open the gallery, then Settings, then the Integrations tab, and choose A different ID or Off for this gallery for Google Analytics 4.
Check it's working
- Open one of your galleries in a private browser window and choose Accept all in the cookie banner.
- Open a photo and try a search.
- In Google Analytics, go to Reports, then Realtime. Within a minute or so you should see a visitor, with the events
page_view,view_itemandsearch.
Events you'll see
| In the gallery | GA4 event | Details sent with it |
|---|---|---|
| Page view | page_view | The page address, without any search |
| Photo opened | view_item | None |
| Search | search | search_type: selfie, number or text |
| Add to cart | add_to_cart | value, currency, num_items |
| Checkout started | begin_checkout | value, currency, num_items |
| Purchase | purchase | value, currency, num_items, transaction_id (the order number) |
| Photos-ready sign-up | generate_lead | None |
Purchase revenue shows in your reports. Which photos or products were bought isn't sent, so item reports stay empty. To report on search_type or num_items, add them as custom definitions in Google Analytics' Admin. To count sign-ups as conversions, mark generate_lead as a key event.
Your Google Analytics and Photohawk's own analytics are kept apart: neither receives the other's events.
Questions people ask
Why does Google Analytics show fewer visitors than the gallery's Analytics tab?
Google Analytics loads only for visitors who choose Accept all in the gallery's cookie banner, and ad blockers can stop it too. The gallery's Analytics tab counts every visit, so Google Analytics usually shows fewer.
I added a Google Analytics ID to my workspace before Integrations. Do I need to add it again?
No. If it's a GA4 measurement ID (starting with G-), it's already filled in under Integrations. It now loads only after the visitor's consent, and only on Pro and Max. An old UA- ID no longer loads, so add your GA4 measurement ID instead.
Was this article helpful?
