=== Custom Admin Manager (CAM) ===
Contributors: tanvirahmed1984
Tags: admin customization, admin dashboard, custom login, Google Analytics, admin color
Requires at least: 5.0
Tested up to: 6.7
Stable tag: 1.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Customize your WordPress admin panel with color themes, custom menus, custom dashboards, login page redesign, and Google Analytics integration.

== Description ==

Custom Admin Manager is a powerful plugin that gives you full control over the WordPress admin interface. Whether you're a developer or a site administrator, you can tailor the admin experience to suit your needs.

**Key Features:**
- **Admin Color Customization:** Change the colors of the top bar, left panel, and admin backgrounds.
- **Custom Dashboard:** Create a fully customized admin dashboard with widgets and layouts.
- **Custom Admin Menu:** Enable/disable or rename admin menu items for a personalized experience.
- **Custom Login Page:** Redesign the login page with custom fields, styles, and logos.
- **Google Analytics Integration:** Seamlessly integrate real-time Google Analytics data into your dashboard to monitor traffic, user activity, and performance without leaving WordPress.
- **Secure and GDPR-Compliant:** All Google API calls are initiated by the user with explicit consent, and no sensitive data is shared externally.
- **Responsive and User-Friendly:** Works seamlessly across devices with an intuitive interface.

This plugin is perfect for developers, agencies, and site owners who want to improve the admin experience or provide branded dashboards for clients.

== External Services ==

This plugin connects to Google services to integrate Google Analytics data into the WordPress admin dashboard. It provides valuable insights into your site's traffic and user behavior directly from your WordPress admin panel.

**Why External Calls Are Necessary:**
1. The plugin integrates Google Analytics to fetch live data, such as user sessions, page views, and traffic sources.
2. This data enhances decision-making by providing analytics without requiring users to leave the WordPress admin area.

**Services Used:**
1. **Google Analytics API**:
   - **Purpose**: Fetch real-time analytics reports, user activity, and other metrics to display in the admin dashboard.
   - **Data Sent**: OAuth access token, property IDs, and API request parameters (e.g., metrics, dimensions, date ranges).
   - **Data Received**: Analytics data, such as users, page views, sessions, and other metrics.
   - **Endpoint**: `https://analyticsdata.googleapis.com/v1beta/`
   - **Terms of Service**: [Google Analytics Terms](https://marketingplatform.google.com/about/analytics/terms/us/)
   - **Privacy Policy**: [Google Privacy Policy](https://policies.google.com/privacy)

2. **Google OAuth2 API**:
   - **Purpose**: Authenticate users and obtain access tokens to interact with the Google Analytics API securely.
   - **Data Sent**: Client ID, client secret, authorization code, and refresh token.
   - **Data Received**: Access token, refresh token, and token expiration time.
   - **Endpoint**: `https://oauth2.googleapis.com/token`
   - **Terms of Service**: [Google APIs Terms of Service](https://developers.google.com/terms/)
   - **Privacy Policy**: [Google Privacy Policy](https://policies.google.com/privacy)

**User Consent:**
- The plugin does not send any data without explicit user consent. Users must authorize the connection to their Google Analytics account through OAuth2.

**Security and Data Handling:**
- Sensitive data such as API tokens are securely stored in the WordPress database and are only used for authenticated API requests. No user data is shared or stored beyond what is necessary for functionality.

== Frequently Asked Questions ==

= Can I restore the default admin menu order? =
Yes! The plugin includes an option to reset the admin menu order to its default state.

= Does the plugin support multisite? =
Currently, Custom Admin Manager works on individual sites. Multisite support is planned for future updates.

= How does the Google Analytics integration work? =
You can connect your Google Analytics account to the dashboard using OAuth 2.0. The plugin fetches real-time data like users, sessions, and page views.

= Does the plugin depend on external services? =
Yes, the plugin integrates with Google Analytics to provide real-time analytics in the WordPress dashboard. All external calls are initiated by the user with explicit consent, and sensitive data is handled securely.

== Screenshots ==

1. **Custom Admin Dashboard:** See your Google Analytics data and other custom widgets in a personalized dashboard.
2. **Custom Login Page:** Design a branded login page with custom fields and styles.
3. **Menu Customization:** Enable or disable admin menu items for a cleaner interface.
4. **Color Customization:** Change top bar and panel colors to match your branding.

== Changelog ==

= 1.0 =
* Initial release with admin customization, custom dashboard, menu enabling/disabling, custom login page, and Google Analytics integration.

== Upgrade Notice ==

= 1.0 =
First stable release. Includes all core features for admin customization and dashboard enhancements.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/custom-admin-manager/` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to **Settings > Custom Admin Manager** to configure the plugin.
4. Customize colors, menus, dashboards, and more to fit your needs.

== Markdown Example ==

**Custom Admin Manager** improves the admin experience:
- Flexible admin interface customization.
- Seamless Google Analytics integration.
- Customizable and responsive design.

