Om Hreem Yoginim Yogeshwarim Yoga Bhayankaree
Sakala Sthavarajangamasya Mukha Hridayam Mama
Yes the mantra is that of Devi, but you are praying this infront of Lord Ganesha!
I have seen Young people where they having serious affliction at the 7th house of marriage or its Lord. These are the people who would have a serious delay in getting married. The above mantra is very useful for them.
All the Best for You!