I was working with a Squarespace site recently and needed to put some tracking code on the success page after a contact form.
Naturally you’ll need to change these three values:
- Change http:www.yoursite.com/trackingpage to the exact URL of the transaction URL.
- Replace the xxxxxxxx after google_conversion_id to whatever your actual conversion is is.
- You’ll also need to change xxxxxxxx after google_conversion_label to whatever your actual label is, too.
That’s it! Now this code can be included on every page but will still only trigger on the conversion page.