{ "template_info": { "name": "e-commerce-analytics", "version": "1.0.0", "description": "Complete e-commerce analytics suite with traffic, conversion, and revenue analysis", "estimated_creation_time": "25-30 minutes", "complexity": "high" }, "domain": { "primary": "e-commerce", "secondary": ["digital-marketing", "business-intelligence", "retail-analytics"] }, "apis": [ { "name": "Google Analytics API", "url": "https://developers.google.com/analytics", "type": "free_premium", "auth_method": "oauth2", "rate_limit": "50,000 requests/project/day", "data_coverage": "Website traffic, user behavior, conversions", "priority": 1 }, { "name": "Stripe API", "url": "https://stripe.com/docs/api", "type": "free_premium", "auth_method": "api_key", "rate_limit": "100 requests/second", "data_coverage": "Payment data, revenue, subscriptions, customers", "priority": 1 }, { "name": "Shopify API", "url": "https://shopify.dev/docs/admin-api", "type": "free_premium", "auth_method": "oauth2", "rate_limit": "40 requests/second", "data_coverage": "Products, orders, customers, inventory", "priority": 2 } ], "analyses": [ { "name": "traffic_analysis", "description": "Website traffic and user behavior analysis", "metrics": ["Sessions", "Users", "Page Views", "Bounce Rate", "Session Duration", "Traffic Sources"], "functions": ["traffic_trends", "source_analysis", "user_behavior", "conversion_funnel"] }, { "name": "revenue_analysis", "description": "Revenue and financial performance analysis", "metrics": ["Total Revenue", "Average Order Value", "Customer Lifetime Value", "Revenue by Product", "Revenue Trends"], "functions": ["revenue_breakdown", "aov_analysis", "ltv_calculation", "revenue_forecasting"] }, { "name": "cohort_analysis", "description": "Customer cohort analysis and retention", "metrics": ["Cohort Retention", "Customer Churn", "Repeat Purchase Rate", "Time to Purchase"], "functions": ["cohort_retention", "churn_analysis", "repeat_purchase_patterns"] }, { "name": "product_performance", "description": "Product-level analytics and performance", "metrics": ["Product Sales", "Conversion Rate by Product", "Inventory Turnover", "Profit Margins"], "functions": ["product_ranking", "inventory_analysis", "profitability_analysis"] } ], "structure": { "type": "comprehensive", "directories": [ "scripts/", "scripts/utils/", "tests/", "references/", "assets/", "data/raw/", "data/processed/", "dashboards/" ], "main_files": [ "fetch_google_analytics.py", "fetch_stripe_data.py", "fetch_shopify_data.py", "analyze_traffic.py", "analyze_revenue.py", "cohort_analysis.py", "product_analysis.py", "generate_dashboard.py", "utils/data_integration.py", "utils/calculations.py" ] }, "cache_strategy": { "analytics_data": "1 hour", "payment_data": "15 minutes", "product_data": "30 minutes", "calculated_metrics": "6 hours" }, "validation_layers": [ "api_data_validation", "business_logic_validation", "data_integration_validation", "metric_calculation_validation" ], "output_formats": ["dashboard", "pdf_report", "api_json", "csv_export", "email_alerts"], "dashboard_components": [ "revenue_overview", "traffic_sources", "conversion_funnel", "top_products", "customer_metrics", "cohort_heatmap" ], "example_usage": [ "Complete e-commerce dashboard for last 30 days", "Revenue analysis by traffic source", "Customer cohort retention analysis", "Product performance ranking", "Mobile vs desktop conversion analysis" ], "installation_requirements": [ "pip install pandas numpy matplotlib seaborn plotly dash", "pip install google-api-python-client stripe shopifyapi", "pip install sqlalchemy redis schedule" ], "authentication_setup": [ "Google Analytics: OAuth2 credentials", "Stripe: API key from dashboard", "Shopify: Private app credentials" ] }