Repository navigation
feat(integrations): Looker Studio Community Connector - #426
Merged
Merged
Conversation
Apps Script connector over the Public Metrics API (/api/v1) with KEY auth (ans_ API keys, validated against /api/v1/whoami), a dynamic brand picker, and four metric sets: daily visibility trend, share of voice by platform, top citation domains, and AI traffic by platform. Per-user 5-minute response caching keeps chart-heavy dashboards from hammering the API. Distributed by deployment link for now; the manifest carries the branding fields the partner gallery will eventually need. Docs gain a Looker Studio guide wired into the nav.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the Looker Studio Community Connector under
integrations/looker-studio/— the consumer side of the Public Metrics API (#422). Agencies open a deployment link, paste theirans_API key, pick a brand and a metric set, and Ansvisor data lands next to GA4 / Search Console in their dashboards.Code.js— the full connector:KEYauth validated against/api/v1/whoami(key stored in Apps ScriptUserProperties), a config step with a dynamic brand dropdown (from/api/v1/brands) and a metric-set picker, report-level date range flowing into every request, per-user 5-minuteCacheServicecaching so chart-heavy dashboards don't hammer the API, and friendly user errors for 401/404/5xx./api/v1/visibility-trend/api/v1/competitor-comparison/api/v1/citations/api/v1/ai-trafficappsscript.json— manifest with the branding fields the partner gallery will eventually require;urlFetchWhitelistpinned to the cloud web-app origin.README.md— maintainer deploy steps (Apps Script + clasp), agency usage flow, self-host notes (changeBASE_URL+ whitelist).guides/looker-studio.mdx(connect steps, metric sets, GA4 blending recipe) wired intomint.json.Deployed and verified end-to-end against production: key auth, brand dropdown, and a rendering visibility-trend chart. Google OAuth verification (branding + sensitive-scope review for
script.external_request) is in progress separately; until it completes, users pass the "unverified app" interstitial.Follow-ups
logoUrl(currently the GitHub org avatar) with a hosted square PNG before gallery submission.Related Issue
Builds on the Public Metrics API from #422.
Type of Change
How to Test
Code.js+appsscript.json(README has the exact steps), and make a test deployment.ans_...key from Settings → API Keys. A bogus key must be rejected at this step.cd docs && npx mint dev→ "Looker Studio" appears under Platform Guides.Checklist
node --checkpasses on the connector script; manifest JSON is valid