I was in a similar situation last year. I think go with the company with better role and learning opportunities rather than looking only at money and the APM tag.
APM role is nice and all but you might not learn any core skill here as it is a generalist role especially when you are a fresher.
In the Analyst role that you are mentioning, you might learn a lot and after 1-1.5 years you can anyways switch to a product role where you will be able to add more value.
Anyways, if you decide to leave the current company on such a short time span, you need to talk to HR and your manager as soon as possible as they might start some payroll, insurance and other processes after which it might get complicated..