Spent seven years in analytics before making the switch myself. If I had my time again I'd still start there - but I'd shift into a marketing-specific analytics role after maybe two years, not seven.
The first couple of years in general analytics are invaluable for building the statistical foundation and SQL fluency that most marketing automation teams desperately lack. But after that, the diminishing returns kick in hard. You start seeing the same patterns across different verticals, just with different customer labels. The real leverage - and where the salary jump lives - is applying those skills to demand generation funnel modelling, attribution weighting, and lifecycle scoring. That's where you stop being a report builder and start being a revenue driver.
For context: I moved from general business intelligence into a HubSpot/Marketo hybrid role, building lead scoring models and multi-touch attribution flows. The technical transition was smooth because the querying and data modelling logic transfers directly. The harder part was unlearning the "one source of truth" mindset - in marketing, truth is distributed across CRM, ESP, ad platforms, and a dozen spreadsheets. You spend more time on data reconciliation than analysis.
So yes, I'd still do analytics first, but I'd treat the pivot as a planned career step rather than a late realisation. If you're in analytics now and feel the ceiling approaching, start side-projecting with marketing data. Clone your company's lead source data and build a simple attribution model. That'll tell you within a month whether the pivot fits.