Adding custom codes makes third-party integration easier for the course creators. They can track their performance, download relevant data, etc. whenever needed.