Updated Analytics success tracking

Modified Jan’s tracking script