Marketing Technology
Building a Personal Marketing Analytics Platform From Scratch
How I connected a public portfolio to private reporting and search visibility tools
Owen Velasco · Applied AI & Software Engineer | AI Applications, Automation Platforms, APIs & Enterprise Integrations · Dec 4, 2026 · 4 min read
I started CareerOS as a place to publish my work and manage my portfolio. Once the public site was in place, I wanted to answer questions a portfolio page cannot answer by itself. Which links brought people in? What did they do once they arrived? What could I find out about how the site appeared in search? Each question needed a different source of evidence.
I built the reporting and search integrations around the split already present in the application. Visitors see the public portfolio and published material. I use the private application to manage content, configure integrations, and inspect reporting. That separation also shaped the publishing plans. The Insights workflow for drafting, previewing, and explicitly publishing articles was planned separately from the portfolio publishing and analytics work described here.
CareerOS connects measurement and search discovery to the same published portfolio while keeping reporting credentials in the private application.
Measure acquisition and on-site behavior separately
CareerOS records first-party traffic and attribution signals. I use UTM parameters to distinguish links I can control, such as listings that point to the same portfolio URL. A source and medium describe where I distributed the link. A campaign and content value can separate links serving different purposes. The parameters describe the link, so their value depends on consistent naming and whether those values reach the landing page. Google Analytics campaign configuration
I also set up Google Tag Manager and GA4. Tag Manager gives me a place to manage browser instrumentation. GA4 gives me another view of acquisition and behavior, including event tracking for actions such as viewing a project or downloading a résumé. I use first-party reporting for the activity CareerOS recorded directly. Each system has its own definitions, coverage, and reporting behavior. In the owner dashboard I keep the counts labeled by source rather than adding them together.
Search Console serves a different question. It brings in Google Search impressions, clicks, and performance by dimensions such as page and query. I can compare a page’s search visibility with post-click behavior, keeping the difference between those datasets visible. A search impression is an event on a results page. A session is a measurement of activity after arriving on the site. GA4 Data API · Search Console Search Analytics API
Bring the reports into the owner application
I used a single owner-scoped Google OAuth connection for GA4 and Search Console reporting. The owner selects a GA4 property and a Search Console site. Server-side calls use read-only reporting permissions, and the client secret and tokens are encrypted at rest. The public portfolio can render without access to either the reporting tokens or the private report cache.
Centralizing authorization also gives the application one place to handle reauthorization and refresh. The implementation coordinates token refresh through the database. I could verify live reporting reads during the integration audit. The current token was still valid, so the first automatic refresh after expiration remained to be observed separately.
Caching lets report views reuse recent provider responses. CareerOS scopes the cache to the owner and keys its entries by report kind, date range, and property selections. Saving a different property clears the owner’s cache. That matters because a report for the wrong property can look entirely plausible. When I read a chart, I want to know which property and period it represents, and when the data was retrieved.
Support search discovery and measure what comes back
On the public side I set up page metadata, structured data, a generated sitemap, and IndexNow submissions. The sitemap gives engines a list of public URLs to discover. IndexNow notifies participating engines about eligible URL changes. The integration records submission history, so I can distinguish a request accepted by a provider from what later appears in a search index. Structured data describes the page content. Each step supports discovery or interpretation, and the engine still decides what to crawl, index, and surface. Google crawling and indexing FAQ · IndexNow documentation
I also checked crawler directives for public content and added a dynamic llms.txt built from the published portfolio and résumé snapshot. Generating it from the same published material keeps it in step with what visitors can see. It is a readable summary for consumers that choose to use it. Its presence does not establish that an AI system fetched the site, cited it, or changed its ranking. Google’s guidance for AI features in Search also describes ordinary search eligibility and says no special AI text file is required. Google Search AI features guidance
The measurement I use for generative search, sometimes called GEO, is narrower than the discovery setup. CareerOS can classify identifiable AI referrals using known referrer patterns or explicit UTM values. It can observe a visit when those signals make it through. A citation can produce zero clicks, and a click can arrive without a recognizable referrer. I treat the resulting numbers as observed referred traffic, with no estimate of total AI visibility.
Make the integration observable from the screen
At one point, the settings buttons looked idle after I clicked them. The audit found evidence of successful provider reads, a populated cache, and an accepted IndexNow submission. The Google and IndexNow controls needed visible pending feedback and results in the same panel. The targeted change added those states, blocked conflicting clicks while a request was in flight, and bounded the wait on Google requests.
That example changed what I look for in an integration review. I want to trace a request from the control that started it through the provider response and any cached result, then back to a status the owner can act on. For CareerOS that means I can tell which source supplied a number and what the last successful check established. Those details are what let me use the portfolio as an ongoing publishing and measurement project instead of treating every new chart or discovery tool as evidence of reach.
marketing analytics · GA4 · Search Console · SEO · first-party analytics
Related articles
More of the systems behind this writing is on the Work and Contact pages.