Last updated
Use a custom conversion tracking code to track when a client books an appointment or makes a purchase.
Custom conversion tracking shows how clients use your scheduler. While Acuity offers ready-to-go integrations with Google Analytics and Meta Pixel, you can also enter code using the Custom conversion tracking option, so you can track every time a client books an appointment or buys a package, gift certificate, or subscription.
Note: Custom code additions fall outside the scope of our support. This means that we’re unable to help further with setup or troubleshooting. Additionally, with a code-based solution, we can’t guarantee its functionality or full compatibility with Squarespace.
Add your custom conversion tracking code
To enter your code:
- In Acuity, click Integrations.
- In the Analytics + Custom Integrations section, click Set up under Custom conversion tracking.
- Paste your code in the HTML tracking code field, then click Save settings.
Filter your results with variables
Acuity fires the same code for every booking and purchase. To filter the results in your conversion tracker, add a conditional statement to your code using these variables:
| Variable | Returns |
| %type% | Appointment if the client booked an appointment or order if the client bought a package, gift certificate, or subscription |
| %price% | The total price of the appointment(s) the client booked |
| %id% | The unique ID number for the client’s appointment |
| %calendar% | The calendar the clients appointment is booked on |
| %appointmentType% | The appointment type of the client’s appointment |
| %email% | The client's email address |
| %clientDate% | The date of the client’s appointment |
| %clientTime% | The time of the client’s appointment. If the client chose their time zone, this is in that time zone. |
For example, to track only your Tour of San Francisco appointment type, write your code to only fire when %appointmentType% returns that name.
Where does the tracking code load?
Your code loads in a frame on the confirmation clients reach after booking. To set conversion goals in another program, use the domain sandbox.acuityinnovation.com and the path /conversion.php.
What to know about specific ad platforms
- AdRoll: enter the tracking code AdRoll provides. To track more events than completed transactions, like page views and forms, create a fixed segment.
- Google Analytics: It isn’t necessary to enter anything using the steps above. Instead, set up this connection in the Integrations panel.
- Google Ads: enter your Google Ads tracking code with no changes.
- Google Tag Manager: use the Google Analytics integration instead. Google Tag Manager can't track your original traffic source when its code loads through Acuity.
- Meta Pixel: It isn’t necessary to enter anything using the steps above. Instead, to learn how to integrate with Meta Pixel, visit Connecting Facebook and Instagram to Acuity.