I would always recommend trying to find a heatsink with a retention clip rather than using glue.
But if you have to, use a glue which is rated for heatsinks OR just a few tiny blobs in the corners.
Always use the right amount of thermal compound. Use too much and it's conductive properties are reduced.