Direct/API import method

I am trying to create a generic PHP import script and can’t for the life of me wrap my head around whether there is a pre-existing Piwik API insert function or if I need to stuff things into the database directly.

I am importing from Mint (which has major scaling issues), but I intend to write it in such a way that someone could adapt it to other stats programs (or at least document the insertion part so that it can be reverse engineered).

PS- Something that sorely needs to be added to the Piwik site navigation is a link to a page on migrating from various platforms with a way for people to get involved in this very crucial step in adoption. Grease the wheels of growth!

Nevermind, I think i found my own answer: Tracking API - Analytics Platform - Matomo

I’ll attach code/instructions to this post once I have the ball of yarn finished.