Event Tracking via Classes
Event Classes on Squarespace
How to label specific elements on your Squarespace website and assign events to them
For information on how to track events by assign a specific event to a particular URL, follow this guide.
To tag specific elements on your website that you'd like to track, follow the guide below.
How to Use Event Classes on Squarespace
This is handled automatically so no need to apply classes to elements. Simply add your PixelFlow code to your Squarespace header and you're all set.
Due to Squarespace's limitations, these are the only events that can be tracked automatically:
- PageView on any page load 
- Initiate Checkout (InitiateCheckout) on Checkout button click 
- Add Payment Info (AddPaymentInfo) event on purchase confirmation page load, e.g. https://www.yoursquarespacesite.com/commerce/orders/2e45bc6c-173e-4a1d-8b64-ea52127b4926 
- Purchase event on purchase confirmation page load, e.g. https://www.yoursquarespacesite.com/commerce/orders/2e45bc6c-173e-4a1d-8b64-ea52127b4926 
Note: PixelFlow automatically prevents sending duplicates on purchase confirmation page reload to avoid clicks being incorrectly counted.
Any other questions? Get in touch