Because there are so many advantages to using e-commerce, it is now expanding quickly. E-commerce, particularly for electronic items, makes it simpler for customers to execute transactions without traveling. Because businesses (business actors) do not yet have a pattern and strategy for the products they sell, the use of e-commerce has not yet reached its full potential. As a result, sales occasionally suffer because the supply of products does not meet consumer needs, forcing consumers to leave without purchasing these products, which has an impact on transactions. sales firm. Businesses (businesspeople) must use data mining to implement data processing. For this reason, researchers use an application strategy that is appropriate in this situation: the a priori algorithm. Finding frequent itemsets that frequently show up in the data set with the strongest pattern is frequently done using the a priori algorithm. This algorithm's output can be used to assist management in making decisions. According to the study's findings, the rule "if you buy AA Batteries (4-pack), you will buy AAA Batteries (4-pack), "if you buy AA Batteries (4-pack), you will buy a USB-C Charging Cable," and "if you buy AA Batteries (4-pack) and AAA Batteries (4-pack), you will buy a USB-C Charging Cable" all have a support and confidence value of 100%.