Wire Google Analytics into the fleet alongside GSC (unblock GA access) #309
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor#309
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Wire Google Analytics into the fleet alongside GSC, so we have on-site behavior (sessions, engagement, conversions) next to search-side data (impressions, clicks, position). Together that gives a much better cross-fleet framing than GSC alone — and specifically a second signal for certifiedtradejobs, where GSC says "delisted" but GA reportedly tells a different story.
Context
GA was blocked by a service-user / OAuth-scope issue — the GSC OAuth app can't be reused because of restricted scopes. Per this thread it now appears resolvable: https://support.google.com/analytics/thread/427838065
Two parts
.env(mirroring theGSC_OAUTH_*shape).lib/ga.shclient analogous tolib/gsc.sh, folded into the CEO digest (ceo_read_gscgets a GA sibling) and the SEO analysis. File that as a separate Agent ticket when the creds are in.Assigned to Josh — the access/OAuth setup is the human-only unblock; the harness integration follows once it's wired.
GA access is officially unblocked. GSC also needs to move to using the the service account access rather than OAuth
GA access (part 1) is complete and verified. The service account (
GOOGLE_SERVICE_ACCOUNT, vialib/google-auth.sh) mints ananalytics.readonlytoken and reads 7 GA properties through the Analytics AdminaccountSummariesendpoint: certifiedtradejobs.com, vpsshowdown.com, sharktank.co, scenekids.com, thatgirljen.com, debtmom.com, holidayapi.com. GSC access is unchanged.The machine half (part 2 —
lib/ga.shfolded into the SEO report + CEO digest, with tests) is filed as a separate Agent ticket per this issue's own plan: #329.Closing — the human unblock this issue tracked is done.