Many businesses today have pages on social networks to complement the data held about products, this study has examined the impact of social media marketing on the purchasing behavior of the consumer. Therefore, the study aims to study this influence from the following objectives: Detect and analyze the behavior of consumers on social media, identify the category of products whose they are the most influenced.