Added ability to configure tracking code