Umeng Analytics Integration for Openclaw

An automated tool for integrating the Umeng Android Statistics SDK into existing Android projects with full environment and compilation validation.

squall0925
v1.0.0
Apr 16, 2026
0
730
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install umeng-analytics-integration

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install umeng-analytics-integration using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Umeng Analytics Integration?

The Umeng Analytics Integration is a specialized automation tool designed to streamline the complex process of adding Umeng Statistics SDKs to Android applications. As part of the Openclaw Skills ecosystem, it handles the heavy lifting of environment verification, dependency management, and code injection, ensuring a bug-free integration process that follows modern Android development standards.

This skill is particularly valuable for developers who need to implement robust analytics across multiple projects or modules without manually editing build files, manifests, and application classes. It supports both modern Kotlin DSL (Version Catalogs) and traditional Groovy configurations, providing a versatile solution for diverse project architectures.

Umeng Analytics Integration Use Cases

  • Automatically adding analytics tracking to a new or existing Android application.
  • Standardizing SDK integration across multiple app modules using a CLI-driven approach.
  • Verifying development environments (JDK, Android SDK, ADB) before attempting integration.
  • Validating SDK data reporting via real-time logcat monitoring during the testing phase.

How Umeng Analytics Integration Works

  1. Environment Check: Automatically detects Java (JDK 17+), Android SDK paths, and ADB tools.
  2. Project Validation: Verifies the integrity of the target Android project and attempts an initial build to ensure stability.
  3. Parameter Input: Collects the Umeng appkey and channel ID through interactive prompts or CLI arguments.
  4. SDK Integration: Modifies Maven repositories, adds TOML or Gradle dependencies, configures AndroidManifest permissions, and updates ProGuard rules.
  5. Code Injection: Creates or modifies the Application class to include pre-initialization and initialization logic.
  6. Verification: Runs a compilation check and monitors logcat for successful data transmission signals.

Umeng Analytics Integration Setup

To use this skill, ensure you have a functional Android project and the Openclaw Skills environment ready. Run the integration script from your terminal:

# Basic interactive usage
python scripts/main.py --project-path /path/to/android/project

# Specify a target app module for multi-module projects
python scripts/main.py --project-path /path/to/project --app-module myapp

# Non-interactive mode using arguments
echo -e "y\nyour_appkey\nyour_channel\ny" | python scripts/main.py --project-path /path/to/project

Umeng Analytics Integration Data Schema & Taxonomy

The skill organizes and modifies data based on the following structure:

Component File Impacted Action
Repositories settings.gradle.kts Adds MavenCentral and Umeng specific repo URLs
Dependencies gradle/libs.versions.toml Defines Umeng common and ASMS versions
Permissions AndroidManifest.xml Injects INTERNET and ACCESS_NETWORK_STATE
Obfuscation proguard-rules.pro Appends necessary Umeng keep rules
Initialization Application.kt/java Injects preInit and init lifecycle methods

A backup directory is created before any modifications to allow for full restoration via the rollback script.

Umeng Analytics Integration Advanced Features

  • Version Catalogs Support: Automatically updates libs.versions.toml for modern dependency management.
  • Rollback Mechanism: Includes a dedicated rollback script to restore the project to its pre-integration state if errors occur.
  • Placeholder Mode: Allows developers to run integrations using placeholders if the final AppKey is not yet available.
  • Multi-module Compatibility: Targeted integration for specific app modules using the --app-module flag.
  • Automated ProGuard Configuration: Ensures analytics tracking isn't broken by code shrinking and obfuscation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*