Kartra pages accept custom header tracking code, which is where tracko.js goes. From there, opt-in forms are captured automatically as leads and every visit is attributed.
For sales, keep the Kartra checkout embedded on a page that has the snippet (with the snippet above the embed in the head), or report orders through Stripe, PayPal, the Zapier/Make webhook or the API so amounts and refunds are exact.