Skip to content

docs: add Facebook Analytics plugin#641

Merged
riderx merged 3 commits into
mainfrom
codex/add-facebook-analytics-website
May 6, 2026
Merged

docs: add Facebook Analytics plugin#641
riderx merged 3 commits into
mainfrom
codex/add-facebook-analytics-website

Conversation

@riderx
Copy link
Copy Markdown
Member

@riderx riderx commented May 6, 2026

Summary

  • add @capgo/capacitor-facebook-analytics to the plugin catalog, sidebar, llms set, and stats placeholders
  • add docs and the English plugin tutorial for Meta/Facebook App Events usage
  • regenerate the public plugins readme; this also refreshes stale generated catalog ordering already present in main

Verification

  • bun run check
  • bun run build && bun run build:after

Notes

Summary by CodeRabbit

  • Documentation

    • Added full Facebook Analytics plugin docs and a getting-started guide with installation, native iOS/Android setup, API reference, and usage examples.
    • Integrated the Facebook Analytics entry into site navigation and plugin docs index.
  • Chores

    • Updated plugin registry and icons; added npm and GitHub metadata for Facebook Analytics (and intent-launcher) to site datasets.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 6, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a14b33a6-0f08-4d1e-bd1c-ecec3640284b

📥 Commits

Reviewing files that changed from the base of the PR and between 9b0df1e and 1720393.

📒 Files selected for processing (9)
  • apps/docs/src/config/llmsCustomSets.ts
  • apps/docs/src/config/sidebar.mjs
  • apps/docs/src/content/docs/docs/plugins/facebook-analytics/getting-started.mdx
  • apps/docs/src/content/docs/docs/plugins/facebook-analytics/index.mdx
  • apps/web/public/plugins-readme.md
  • apps/web/src/config/plugins.ts
  • apps/web/src/content/plugins-tutorials/en/capacitor-facebook-analytics.md
  • apps/web/src/data/github-stars.json
  • apps/web/src/data/npm-downloads.json
✅ Files skipped from review due to trivial changes (1)
  • apps/docs/src/content/docs/docs/plugins/facebook-analytics/index.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/docs/src/config/sidebar.mjs

📝 Walkthrough

Walkthrough

This PR adds the Capacitor Facebook Analytics plugin to docs and web apps: sidebar and LLM custom set registrations, plugin registry and icon mapping, new documentation pages (overview + getting-started + tutorial), and metadata updates for GitHub stars and npm downloads.

Changes

Facebook Analytics Plugin Onboarding

Layer / File(s) Summary
Registry / Data
apps/web/src/config/plugins.ts, apps/web/src/data/npm-downloads.json, apps/web/src/data/github-stars.json
Adds @capgo/capacitor-facebook-analytics to actionDefinitionRows, adds an icon mapping (pluginIconsByName -> ChartBar), and inserts npm/github metadata entries (value 0). Also adds a github-star entry for capacitator-intent-launcher.
Docs Config / Navigation
apps/docs/src/config/sidebar.mjs, apps/docs/src/config/llmsCustomSets.ts
Inserts "Facebook Analytics" into docs pluginEntries and adds an LLMS custom set row targeting docs/plugins/facebook-analytics/**.
Documentation Content
apps/docs/src/content/docs/docs/plugins/facebook-analytics/index.mdx, apps/docs/src/content/docs/docs/plugins/facebook-analytics/getting-started.mdx, apps/web/src/content/plugins-tutorials/en/capacitor-facebook-analytics.md
Adds an overview page, a detailed getting-started guide (install, imports, iOS/Android native setup, advertiser tracking, usage examples), and a web tutorial page with API examples and references.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • Cap-go/website#642: Makes analogous edits to llmsCustomSets, docs sidebar, web plugin registry, and metadata for a different plugin; same file locations changed.
  • Cap-go/website#640: Adds a different plugin across docs/sidebar, llmsCustomSets, web registry, and metadata—same patterns and files modified.
  • Cap-go/website#590: Performed equivalent edits to configuration arrays and added docs pages for another plugin; closely related by structure.

Poem

🐇 I hopped through docs and registry rows,
Poked in icons, pages, metadata glows.
A plugin planted, examples in tow,
Stars and downloads put on show —
Happy rabbit, ready to go! 🎩✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'docs: add Facebook Analytics plugin' clearly and concisely summarizes the main change: adding documentation for the Facebook Analytics plugin to the catalog.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/add-facebook-analytics-website

Comment @coderabbitai help to get the list of available commands and usage tips.

@riderx riderx marked this pull request as ready for review May 6, 2026 07:34
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/web/src/content/plugins-tutorials/en/capacitor-facebook-analytics.md`:
- Around line 80-83: The "Full Reference" section currently lists the GitHub URL
and a plain-text Docs path; update the two list items under the "## Full
Reference" heading so both are clickable links by converting the plain text
entries into Markdown link syntax (e.g., make the GitHub line and the "Docs:
/docs/plugins/facebook-analytics/" line into proper [text](url) links) so
readers can navigate directly from that section.
- Around line 15-23: The API summary omits the upstream public method
getPluginVersion(); update the "What This Plugin Exposes" list in the Capacitor
Facebook Analytics tutorial to include `getPluginVersion` (which returns the
native plugin version) alongside the existing methods (`initAppEvents`,
`logEvent`, `logPurchase`, `enableAdvertiserTracking`,
`disableAdvertiserTracking`, `getAdvertiserTrackingStatus`) so the section lists
all six documented methods; simply add an entry `- getPluginVersion - Read the
native plugin version` to the list in the document.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e6c63420-50ee-49ba-bd7a-39efc28413c6

📥 Commits

Reviewing files that changed from the base of the PR and between 0701470 and 5f77fdf.

📒 Files selected for processing (9)
  • apps/docs/src/config/llmsCustomSets.ts
  • apps/docs/src/config/sidebar.mjs
  • apps/docs/src/content/docs/docs/plugins/facebook-analytics/getting-started.mdx
  • apps/docs/src/content/docs/docs/plugins/facebook-analytics/index.mdx
  • apps/web/public/plugins-readme.md
  • apps/web/src/config/plugins.ts
  • apps/web/src/content/plugins-tutorials/en/capacitor-facebook-analytics.md
  • apps/web/src/data/github-stars.json
  • apps/web/src/data/npm-downloads.json

Comment thread apps/web/src/content/plugins-tutorials/en/capacitor-facebook-analytics.md Outdated
@riderx riderx force-pushed the codex/add-facebook-analytics-website branch from 9b0df1e to 1720393 Compare May 6, 2026 09:48
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2026

@riderx riderx merged commit e72cc11 into main May 6, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant