Disclosed herein are formulations and methods of site specific administration of Compound (I) or a pharmaceutically acceptable salt thereof. Compound (I) is a potent BTK inhibitor and hence can be useful for the treatment of diseases such as cancer, autoimmune, and inflammatory diseases.