Abstract:Analysis and optimization of keywords are the two most onerous aspects in search engine optimization. This paper firstly simplifies the analysis of keywords by K-means algorithm, then puts forward the strategy of website optimization based on keyword effectiveness and value rate, finally gives out an application example. The method can quickly enhance ranking of site keywords and bring traffic to the website. It is applicable to all kinds of enterprise website.