GA4 is required on every site. It is the primary data source for the 30-day post-launch check-in and the Premium maintenance analytics report.
Google Analytics 4 replaced Universal Analytics in July 2023. Every new WordPress site must use GA4 — there is no Universal Analytics option anymore. GA4 uses an event-based data model rather than a session-based model, which means conversion tracking is configured differently than in UA.
One property per website. Create it in the client's Google account.
Use the Site Kit by Google plugin. It is the cleanest method for WordPress.
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/
gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script>GA4 tracks page views automatically. Conversions require additional configuration.
// Fire GA4 event when booking button is clicked
document.querySelectorAll('a[href*="jane.app"],
a[href*="vagaro"], a[href*="acuity"]')
.forEach(function(el) {
el.addEventListener('click', function() {
gtag('event', 'booking_click', {
'event_category': 'conversion',
'event_label': el.href
});
});
});document.querySelectorAll('a[href^="tel:"]')
.forEach(function(el) {
el.addEventListener('click', function() {
gtag('event', 'phone_call_click', {
'event_category': 'conversion'
});
});
});The client must have their own access to their data. You are not a gatekeeper.
Since the GA4 property is created in the client's Google account, they already have Owner access. Your job is to ensure they know how to log in and read basic reports. Add yourself as an Editor or Administrator so you can access data for the 30-day check-in and Premium maintenance reports.
Confirm tracking is firing before the site goes live.
Verify GA4 is tracking correctly on staging before launch. Do not wait until after DNS transfer to discover the tag is missing or misconfigured.
GA4 and HIPAA require careful configuration for medical clients.
GA4 does not qualify as a HIPAA Business Associate and Google does not sign BAAs for standard GA4 accounts. For medical covered entities, GA4 must be configured to avoid transmitting Protected Health Information (PHI) to Google.
gtag('config', 'G-XXXXXXXXXX', {
'anonymize_ip': true
});