The invention relates to the technical field of electronic commerce, in particular to a
digital marketing method and
system based on a
payment two-dimensional code and a mobile terminal.The method comprises the following steps that based on user behavior data, the two-dimensional code scanning frequency and the user
retention time are calculated, and a primary user behavior analysis result is obtained; and two-dimensional code content parameters including discount strength, the type of promotion information and timeliness are adjusted, and optimized two-dimensional code parameter configuration is generated. According to the invention, through refining user behavior data such as two-dimensional code scanning frequency and user
retention time, a marketing strategy is adjusted in real time, market demands are accurately reflected,
rapid response of the strategy to market changes is enhanced, discount strength and
sales promotion timeliness are optimized, and
user participation degree is improved. The optimal position and time of the two-dimensional code are determined, the advertisement
exposure rate and the marketing effect are improved, the cost and the effect are effectively balanced through real-
time data-driven
Bayesian optimization model adjustment and the use of a multi-objective optimization
algorithm,
activity scheduling is optimized, and the marketing return on investment is remarkably improved.