...
To provide a HIPAA compliant solution, NextPatient has created a tracker tool that links the incoming UTM and select other variables to the booked appointment as well as a new CSV output to report on these details.
Step 1: Install the NextPatient Tracker
Add the following script to your website header so that it appears on all pages:
Code Block |
---|
<script src="https://dev.nextpatient.co/js/{group-name}/track-source.js"></script> |
The {group-name} is an account specific value that can be obtained through your account manager.
Step 2: Run the Tracking/UTM booking report
Visit https://nextpatient.co/admin and after logging in, navigate to the Reports section.
...
From the ‘Report' list, select ‘Tracking/UTM booking report (by date booked)’
For the ‘Offices’ list, select ‘All offices'
For the 'Dates’ option, select the desired report date range.
Once ready, click ‘Download’
...
An alternative solution is to run javascript to append the needed variables to any outbound links to NextPatient. In the example code below, on line 4, the variable ‘utm_source’ is being appended with the value ‘knowledgebase’.
Code Block |
---|
<script>
var objects = $(".nextpatient-link");
for (var obj of objects) {
obj.href+='?utm_source=knowledgebase';
}
</script> |
...
Info |
---|
The following variables will be reported:
|
Helpful Links:
Building custom URLs with UTM variables: https://support.google.com/analytics/answer/10917952?hl=en&sjid=4791427783605646597-NA#zippy=%2Cin-this-article
Adding variables to custom GA campaigns: https://support.google.com/analytics/answer/11259997?hl=en&sjid=15870309260609207337-NC