- Home
- Skills
- Workflow Automation
- Análisis de clientes de Firebase Ga4
More screenshots
Works with the AI Agents you already use
Análisis de clientes de Firebase Ga4
Automate GA4 tracking injection for Firebase Hosting and set up scheduled email reporting for clients.
$5
Análisis de clientes de Firebase Ga4
Example session with this skill installed
I need to add GA4 tracking to my Firebase site and set up a monthly report for my client at client@example.com. My ID is G-12345678. I use a public/ folder.
- Read your context and instructions
- Compiled the an lisis de
I have configured the GA4 integration for your Firebase project. I updated the HTML templates, optimized the hosting configuration, and prepared the reporting workflow.
Analytics Implementation
<!-- Added to public/index.html -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-12345678"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-12345678');
</script>
/* Updated firebase.json */
{
"hosting": {
"public": "public",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"headers": [
{
"source": "**/*.@(js|css|html)",
"headers": [{ "key": "Cache-Control", "value": "no-cache" }]
}
]
}
}
/* Helper added to public/js/analytics-helper.js */
export function trackCustomEvent(eventName, category, label) {
if (typeof window.gtag === 'function') {
window.gtag('event', eventName, {
event_category: category,
event_label: label
});
}
}
Next steps
- Run
firebase deploy --only hostingto push the changes. - Go to GA4 > Admin > Property Access Management and add
client@example.comas a Viewer. - In Reports > Reports snapshot, click Share this report and schedule a Monthly PDF for the client.
Connects securely to your tools. The creator never sees your data.
About this skill
Setting up client analytics for Firebase projects often ends with two bad options: giving non-technical clients full console access or manually exporting PDFs every month. This skill automates the technical implementation of Google Analytics 4 (GA4) and the reporting workflow.
What it does
- Injects GA4 tracking by automatically placing the
gtag.jsglobal site tag intoindex.htmland secondary pages. - Optimizes Firebase Hosting by configuring
firebase.jsonwith appropriate cache headers to prevent stale analytics scripts. - Tracks custom conversions with modular JavaScript helpers for buttons, lead forms, and checkout events.
- Establishes client reporting through a structured workflow for scheduled, automated PDF email deliveries of KPIs.
- Verifies deployment by providing CLI commands and real-time validation steps.
How it works
- Gather IDs by requesting the GA4 Measurement ID and identifying the project build directory.
- Modify HTML/JSON to inject tracking snippets and set
Cache-Controlheaders in the Firebase config. - Extend JS logic by adding event tracking functions to your modular frontend scripts.
- Configure Google Analytics using a step-by-step guide to set up scheduled reporting for the client's email.
Frameworks & tools
This skill is designed for Firebase Hosting, Google Analytics 4, and JavaScript/HTML projects. It works with standard static sites or modular JS apps using the Firebase CLI.
Why this beats prompting it yourself
Writing these instructions manually often results in missed cache-control headers or broken event tracking in modular environments. This skill ensures the correct gtag implementation while solving the business problem of client reporting without compromising Firebase security.
Use cases
- Add tracking to a Firebase-hosted landing page and automate weekly client reports.
- Implement custom event tracking for WhatsApp or lead form buttons.
- Configure hosting headers to ensure analytics scripts stay fresh for users.
- Grant clients read-only KPI access without sharing Firebase project credentials.
Known limitations
Requires an existing Firebase project and a pre-generated GA4 Measurement ID. Automated email reporting must be finalized manually in the Google Analytics 4 Admin interface.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Accounts
Google Account
- Software
- Google Analytics 4 propertyFirebase projectFirebase CLI
- Optional
- Custom conversion events (JS)
Client email reports are scheduled directly from the GA4 Property interface (the client only needs Viewer access to the property, no Firebase Console access or BigQuery export required).
Permissions
Allowed Hosts
File Scopes
Read/write access is strictly limited to HTML/JS files inside public/ and firebase.json to inject the GA4 snippet and configure no-cache headers. Shell access is only used to run firebase deploy --only hosting. No environment variables (.env) or credentials are read or modified.
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.