More screenshots

    Works with the AI Agents you already use

    Análisis de clientes de Firebase Ga4

    by natalia herrera

    1

    Automate GA4 tracking injection for Firebase Hosting and set up scheduled email reporting for clients.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Análisis de clientes de Firebase Ga4

    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

    1. Run firebase deploy --only hosting to push the changes.
    2. Go to GA4 > Admin > Property Access Management and add client@example.com as a Viewer.
    3. 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.js global site tag into index.html and secondary pages.
    • Optimizes Firebase Hosting by configuring firebase.json with 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

    1. Gather IDs by requesting the GA4 Measurement ID and identifying the project build directory.
    2. Modify HTML/JSON to inject tracking snippets and set Cache-Control headers in the Firebase config.
    3. Extend JS logic by adding event tracking functions to your modular frontend scripts.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Write Files
    Read Files

    Allowed Hosts

    analytics.google.com
    firebase.google.com

    File Scopes

    public/**/*.html
    public/js/*.js
    firebase.json

    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.

    Listed6 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the technical injection of GA4 tracking code into Firebase projects and configures Firebase Hosting headers to ensure analytics data stays accurate and isn't affected by browser caching.

    The skill is compatible with standard HTML/CSS static sites and modular JavaScript applications deployed via the Firebase CLI. It requires an existing Firebase project and a pre-generated GA4 Measurement ID to function.

    No, this skill is designed to solve the security risk of sharing project credentials by setting up an automated, scheduled reporting workflow that delivers KPIs directly to your client's email.

    You receive the instructions and workflow for HTML/JSON configuration, deployment commands, and a step-by-step guide for setting up scheduled GA4 email reports.

    While the skill automates the code injection and configuration, Google’s security policies require that the final 'Schedule Email' toggle be manually configured and activated within your GA4 Reports interface (via Share → Schedule email) to authorize the recipient.

    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.