feat(analytics): add Google Analytics and Google Search Console commands#402
Conversation
6beeef1 to
b82cc1a
Compare
|
Deep overlap with #404 on the Search Console slice. Same hot files: |
|
Hey @haresh-seenivasagan I'll happily close my PR in favor of this one with the additions? Also happy to take over if you need instead. Let's get this over the line soon! |
|
Hey @aesadde sounds good! We can go with this one with the additions. I'll make them soon |
b82cc1a to
c6520ed
Compare
|
Any more work that needs to be done on this one, or just waiting for review? I'm open to help! |
|
hi @silveltman just waiting for review now haha |
Motivation
I wanted to give my companies Claw🦞 access to Google Analytics and Search Console data for SEO audits and traffic analysis.
Summary
gog analytics accounts--allfor pagination)gog analytics report <property>gog searchconsole sitesgog searchconsole sites get <site>gog searchconsole query <site>gog searchconsole searchanalytics query <site>gog searchconsole sitemaps <site>gog searchconsole sitemaps get <site> <feed>gog searchconsole sitemaps submit <site> <feed>gog searchconsole sitemaps delete <site> <feed>Analytics is read-only. Search Console supports read/query operations plus sitemap submit/delete when authorized with non-readonly Search Console scope. Aliases:
ga,gsc,webmasters.Follows existing patterns (
collectAllPages,tableWriter,failEmptyExit, same flag names). Property IDs normalized so123456789andproperties/123456789both work.Tests
go test ./...