In some industries with consumer variety-seeking and congestion effect, firms can often use discriminatory pricing scheme by consumer purchasing history. In this paper, we build up a two-stage game model to investigate this economic phenomenon. As for our research results, we can show that both market environmental factors, namely consumer variety-seeking and congestion effect, can lead to firms’ own market power, but the main reason for firm discriminatory pricing is consumer variety-seeking. After the purchase during the first phase, consumer variety-seeking leads to differences in consumers’ valuation of the products, and firms can effectively distinguish different consumer groups, leading to market segmentation and discriminatory pricing during the second phase. The firms offer discounting prices for loyal consumers, but charge new customers higher prices, trying to attract repeat purchases of old customers and avoid too much loss of old customers. Because the congestion effect on all consumers is consistent, it will not lead to the differences in consumers’ valuation of products, and it is impossible for firms to make discriminatory pricing. But the congestion effect can restrain the firms from reducing prices to attract consumers, and weaken the competition between the firms, resulting in the tacit collusion” between oligarchic firms. In fact, we also find that both market environmental factors weaken price competition. Compared with uniform pricing, discriminatory pricing results in lower equilibrium prices during two phases, and both the equilibrium profits and social welfare are also lower, but consumers gain higher surplus. Further pricing strategy choice shows that discriminatory pricing based on consumer purchasing history selected by both two firms is an equilibrium result, leading to lower profits of two firms, thus they fall into the prisoner’s dilemma”. This paper explores the general welfare standard and the competition policy about the discriminatory pricing based on consumer purchasing history. The discriminatory pricing based on consumer purchasing history belongs to the third-degree price discrimination. Discriminatory pricing does not increase the total quantities of goods, so total social welfare falls. In general, in an industry with consumer variety-seeking and congestion effect, there is very sufficient competition between firms, which have almost no market power, and firms’ pricing behavior is more benefcial to consumers. The loss of social welfare mainly comes from consumer variety-seeking; it is very difficult to understand the information of characteristics of consumers, and there is a great deal of information costs. For these reasons, we believe that the competition policy should allow firms to adopt such pricing strategies and should not make too much intervention. The antitrust authorities should be cautious, and only confirmed that firms with such a pricing strategy have a dominant market position, can it intervene in firm behavior.