PLEASE NOTE: As of 2024, NextPatient will no longer offer Google Analytics to new customers.
PLEASE NOTE: Currently (as of 6/13/23), we will not be configuring custom dimensions for visit reason or appointment ID.
The ONLY dimension we will add for clients is location.
Cross-Domain Tracking
In order for practices to track bookings with GA4, they must have cross-domain tracking enabled with the nextpatient.co domain. This ensures that clients can track the booking process of a patient through to the booking confirmation page. Because NextPatient redirects patients to a NextPatient hosted page after they choose a time to book, the patient is no longer on the client’s website and without cross-domain tracking, the client will not be able to see who completed a booking online.
To set up cross-domain tracking, first have the client log into their GA4/Google Analytics container. From there, go to the Admin page, and click on Data Streams under the Property list.
Choose the data stream that you wish to add the cross-domain tracking onto. This should be the practice’s webpage.
Then, scroll down and click on “Tagging Settings”.
Next, click “Configure Your Domains”. Once you are on that page, click the button for “Add Condition”.
The Match Type should be “contains” and the Domain should be ”nextpatient.co”.
Once you’re done, hit SAVE at the top right of the screen.
If your client does not use GA4, and instead are using Universal Analytics (or UA) codes, they will need to configure cross-domain tracking via Google Tag Manager. You can follow the instructions on this page for UA cross-domain tracking configuration.
Adding Location Tags
With GA4 tracking, clients will need to configure additional parameters in their Google Analytics container in order to see data from NextPatient for locations.
Go to Configure.
Next, choose Custom Definitions → Custom Dimensions.
Then, click New Custom Dimension.
You will want to set up this new custom dimension exactly like the screenshots below.
For the location parameter:
Note exactly what the event parameter names are. You will need to share these with the Product Manager in order to configure on the back-end of NextPatient. If these parameters are not exact, NextPatient cannot push the data to the client’s GA container. Make sure that it is labeled “np_location”!
Be sure to hit SAVE once you are done configuring each of these custom dimensions!
You can send a request to the developers or to the product manager at NextPatient in order to have these parameters added to NextPatient. If you skip this step, the client will not see the location or visit reason data pushed into their Google Analytics container!