Are you trying to add google analytics(GA) tracking? you should add the code you get from the GA site between the
{% if first_time_accessed %}
// delete this line and place the code from GA here!
{% endif %}
Then in Google Analytics you need to set up a “conversion goal” using the “thank_you” as the trigger.
If you need some assistance, I can be hired for a reasonable rate.
Scott