Lord Shiva is universally worshipped as the greatest devotee of Sri Krishna. Lord Shiva carries the sacred Ganga, which emanates from the toe of Lord Vishnu, on His head in His thickly matted hair.
Lord Shiva is usually an integral part of Lord Krishna's leelas. When Lord Krishna appeared on earth and was in Gokula, Lord Shiva could not contain Himself and went to Yashoda’s home for darshan dressed as a sadhu. Sadhakas in the raganuga marg pray to Lord Gopeshwar Mahadeva to bless them with gopi rupa and gopi bhava and permit them to enter into the Lord's maharaas.
In scriptures, one of the forms of Lord Shiva is that of Ardhanarishvara which is a composite androgynous (partly male and partly female in appearance) form of Lord Shiva and His consort Parvati or Shakti. Though they are incorporated in the same form they act independently as well as jointly.