{
  "format": "dataset-manifest/1",
  "slug": "marketing-engagement-tracker",
  "version": 1,
  "seed": "marketing-engagement-tracker:1",
  "spec": {
    "format": "dataset/1",
    "slug": "marketing-engagement-tracker",
    "name": "Marketing Engagement Tracker",
    "tagline": "Leads, opportunities, sales orders, activities, interactions, and comments from various marketing campaigns.",
    "description": "Business teams engage clients through diverse marketing campaigns, meticulously tracking outcomes to refine strategies. Leads generated spark opportunities for the sales team, while activities and interactions provide context on how potential clients respond to marketing efforts. Each lead in the leads table represents a potential client, often linked to one or more opportunities in the opportunities table, where active engagements are tracked. Sales orders, captured in the sales_orders table, document successful conversions from these opportunities, showcasing the effectiveness of the campaigns. Marketing activities are logged in the activities table, detailing the actions taken by team members to promote products or services.\n\nThe interactions table records the communications between team members and leads, offering insight into how these relationships evolve over time. Comments, found in the comments table, provide qualitative feedback that further enriches understanding of customer sentiment and the effectiveness of different marketing strategies. This multi-faceted structure allows for a comprehensive analysis of the marketing funnel, from initial lead generation through to final sales.\n\nQuestions the data answers include: What types of campaigns lead to the highest conversion rates? How do different marketing activities correlate with successful sales orders? What feedback do team members and clients provide about specific interactions? Practicing with this dataset will enhance your skills in analyzing marketing performance, understanding conversion metrics, and applying data-driven strategies for business growth. It’s important to note that this data is synthetic, designed to mimic real-world scenarios while providing a safe space for experimentation and learning.",
    "domain": "marketing",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "marketing",
      "leads",
      "opportunities",
      "sales",
      "engagement",
      "campaigns",
      "feedback"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "leads": {
        "description": "This table contains records of potential clients, detailing their contact information and status within the marketing funnel. Each lead is uniquely identified and linked to various marketing activities.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each lead."
          },
          "first_name": {
            "kind": "firstName",
            "description": "First name of the lead."
          },
          "last_name": {
            "kind": "lastName",
            "description": "Last name of the lead."
          },
          "email": {
            "kind": "email",
            "from": [
              "first_name",
              "last_name"
            ],
            "description": "Email address of the lead."
          },
          "status": {
            "kind": "enum",
            "values": [
              "new",
              "contacted",
              "qualified",
              "unqualified"
            ],
            "description": "Current status of the lead."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp when the lead was created.",
            "dayProfile": "waking"
          }
        }
      },
      "opportunities": {
        "description": "This table tracks potential sales opportunities linked to leads, including their value and status in the sales process. Opportunities are associated with specific leads, enabling effective tracking.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each opportunity."
          },
          "lead_id": {
            "kind": "fk",
            "ref": "leads.id",
            "description": "Reference to the lead associated with this opportunity."
          },
          "value": {
            "kind": "decimal",
            "min": 1000,
            "max": 100000,
            "scale": 2,
            "description": "Monetary value of the opportunity."
          },
          "status": {
            "kind": "enum",
            "values": [
              "open",
              "won",
              "lost"
            ],
            "description": "Current status of the opportunity."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp when the opportunity was created.",
            "dayProfile": "waking"
          }
        }
      },
      "sales_orders": {
        "description": "This table records completed sales orders derived from opportunities, capturing essential details about each transaction.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each sales order."
          },
          "opportunity_id": {
            "kind": "fk",
            "ref": "opportunities.id",
            "description": "Reference to the opportunity that resulted in this order."
          },
          "total_amount": {
            "kind": "decimal",
            "min": 100,
            "max": 50000,
            "scale": 2,
            "description": "Total amount for the sales order."
          },
          "order_date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date when the order was finalized."
          }
        }
      },
      "activities": {
        "description": "This table logs various marketing activities conducted by team members, including details about the type and date of each activity.",
        "rows": 250,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each activity."
          },
          "activity_type": {
            "kind": "enum",
            "values": [
              "email",
              "call",
              "meeting",
              "webinar"
            ],
            "description": "Type of marketing activity performed."
          },
          "lead_id": {
            "kind": "fk",
            "ref": "leads.id",
            "description": "Reference to the lead associated with this activity."
          },
          "activity_date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date when the activity was conducted.",
            "dayProfile": "business"
          }
        }
      },
      "interactions": {
        "description": "This table captures user interactions with marketing content, including feedback and sentiment analysis, linked back to specific leads.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each interaction."
          },
          "lead_id": {
            "kind": "fk",
            "ref": "leads.id",
            "description": "Reference to the lead for this interaction."
          },
          "feedback": {
            "kind": "words",
            "min": 5,
            "max": 100,
            "description": "User feedback regarding the marketing content."
          },
          "sentiment": {
            "kind": "enum",
            "values": [
              "positive",
              "neutral",
              "negative"
            ],
            "description": "Sentiment extracted from the feedback."
          },
          "interaction_date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date of the user interaction.",
            "dayProfile": "waking"
          }
        }
      },
      "comments": {
        "description": "This table holds comment threads related to interactions, providing deeper insights into customer sentiment and engagement.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each comment."
          },
          "interaction_id": {
            "kind": "fk",
            "ref": "interactions.id",
            "description": "Reference to the interaction associated with this comment."
          },
          "comment_text": {
            "kind": "paragraph",
            "min": 10,
            "max": 500,
            "description": "Text of the comment."
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp when the comment was made.",
            "dayProfile": "waking"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "monetary",
      "categorical"
    ],
    "analysisQuestions": [
      "What are the conversion rates from leads to opportunities?",
      "Which marketing activities generate the most engagement?",
      "What is the average value of opportunities created per campaign?",
      "How do customer sentiments vary across different activities?"
    ],
    "suggestedQueries": [
      {
        "title": "Retrieve all leads and their statuses",
        "sql": "SELECT * FROM leads;",
        "dialect": "postgres"
      },
      {
        "title": "Count opportunities by status",
        "sql": "SELECT status, COUNT(*) FROM opportunities GROUP BY status;",
        "dialect": "postgres"
      },
      {
        "title": "Calculate the total sales amount by month",
        "sql": "SELECT DATE_TRUNC('month', order_date) AS month, SUM(total_amount) FROM sales_orders GROUP BY month;",
        "dialect": "postgres"
      },
      {
        "title": "Find the most common activity types for leads",
        "sql": "SELECT activity_type, COUNT(*) FROM activities GROUP BY activity_type;",
        "dialect": "postgres"
      },
      {
        "title": "Analyze sentiment over time",
        "sql": "SELECT DATE(interaction_date) AS date, sentiment, COUNT(*) FROM interactions GROUP BY date, sentiment;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Marketing Analyst Reporting",
        "body": "A marketing analyst can utilize this dataset to generate reports on campaign effectiveness, analyzing conversion rates and customer sentiments over time to refine marketing strategies."
      },
      {
        "title": "Sales Team Performance Review",
        "body": "The sales team can leverage insights from opportunities and sales orders to evaluate team performance, identifying which lead sources yield the best conversion rates and revenue."
      },
      {
        "title": "Campaign Effectiveness Analysis",
        "body": "Marketing managers can assess the effectiveness of various marketing activities by correlating engagement metrics with lead conversion rates, facilitating data-driven decision-making."
      },
      {
        "title": "Customer Feedback Insights",
        "body": "Customer support teams can analyze interaction feedback to gauge customer sentiment and satisfaction, helping to identify areas for improvement in marketing outreach."
      }
    ]
  },
  "counts": {
    "leads": 200,
    "activities": 250,
    "interactions": 300,
    "comments": 200,
    "opportunities": 150,
    "sales_orders": 100
  },
  "stats": {
    "leads": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "first_name": {
          "nulls": 0,
          "distinct": 73,
          "min": "Alice",
          "max": "Zoe"
        },
        "last_name": {
          "nulls": 0,
          "distinct": 74,
          "min": "Adams",
          "max": "Zhang"
        },
        "email": {
          "nulls": 0,
          "distinct": 198
        },
        "status": {
          "nulls": 0,
          "distinct": 4,
          "min": "contacted",
          "max": "unqualified"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2023-01-03 02:36:40",
          "max": "2023-12-28 18:53:00"
        }
      }
    },
    "opportunities": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "lead_id": {
          "nulls": 0,
          "distinct": 106,
          "min": 1,
          "max": 200
        },
        "value": {
          "nulls": 0,
          "distinct": 150,
          "min": 1612.27,
          "max": 99547.64
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "lost",
          "max": "won"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 150,
          "min": "2023-01-01 19:19:53",
          "max": "2023-12-29 18:35:58"
        }
      }
    },
    "sales_orders": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "opportunity_id": {
          "nulls": 0,
          "distinct": 68,
          "min": 2,
          "max": 149
        },
        "total_amount": {
          "nulls": 0,
          "distinct": 100,
          "min": 1488.31,
          "max": 49949.22
        },
        "order_date": {
          "nulls": 0,
          "distinct": 100,
          "min": "2023-01-01 20:13:29",
          "max": "2023-12-20 17:23:59"
        }
      }
    },
    "activities": {
      "rows": 250,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 250,
          "min": 1,
          "max": 250
        },
        "activity_type": {
          "nulls": 0,
          "distinct": 4,
          "min": "call",
          "max": "webinar"
        },
        "lead_id": {
          "nulls": 0,
          "distinct": 140,
          "min": 1,
          "max": 200
        },
        "activity_date": {
          "nulls": 0,
          "distinct": 250,
          "min": "2023-01-02 09:49:27",
          "max": "2023-12-31 11:24:33"
        }
      }
    },
    "interactions": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "lead_id": {
          "nulls": 0,
          "distinct": 156,
          "min": 1,
          "max": 200
        },
        "feedback": {
          "nulls": 0,
          "distinct": 300
        },
        "sentiment": {
          "nulls": 0,
          "distinct": 3,
          "min": "negative",
          "max": "positive"
        },
        "interaction_date": {
          "nulls": 0,
          "distinct": 300,
          "min": "2023-01-10 08:16:00",
          "max": "2023-12-31 19:45:02"
        }
      }
    },
    "comments": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "interaction_id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 298
        },
        "comment_text": {
          "nulls": 0,
          "distinct": 200
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2023-01-02 20:43:12",
          "max": "2023-12-31 10:10:25"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/leads.csv",
      "format": "csv",
      "table": "leads",
      "key": "datasets/marketing-engagement-tracker/v1/csv/leads.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/csv/leads.csv",
      "bytes": 14023,
      "sha256": "01ec05d3782beecb8784b15a18aee1513d38527e810f3b230e508488e9b4df1e",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/activities.csv",
      "format": "csv",
      "table": "activities",
      "key": "datasets/marketing-engagement-tracker/v1/csv/activities.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/csv/activities.csv",
      "bytes": 8724,
      "sha256": "1c5ed96b9deac1b8bfb9623eaf1a05fa1f0b2d68dd76263b12fcf1771db41e51",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/interactions.csv",
      "format": "csv",
      "table": "interactions",
      "key": "datasets/marketing-engagement-tracker/v1/csv/interactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/csv/interactions.csv",
      "bytes": 115483,
      "sha256": "f9959fdbce0d64b816b7edd316b9d03bbe6af3128119efaddfc38be2159d29ca",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/comments.csv",
      "format": "csv",
      "table": "comments",
      "key": "datasets/marketing-engagement-tracker/v1/csv/comments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/csv/comments.csv",
      "bytes": 39479,
      "sha256": "8914c027eae4fd69f07bc141b095b144c717bc8febc8d3afcc9652a41ca6b7d4",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/opportunities.csv",
      "format": "csv",
      "table": "opportunities",
      "key": "datasets/marketing-engagement-tracker/v1/csv/opportunities.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/csv/opportunities.csv",
      "bytes": 6233,
      "sha256": "b0ac90b7da792d36e5b8bb0a320ba42be9b13357d3a7e4bde6f5b808bd22c347",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/sales_orders.csv",
      "format": "csv",
      "table": "sales_orders",
      "key": "datasets/marketing-engagement-tracker/v1/csv/sales_orders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/csv/sales_orders.csv",
      "bytes": 3652,
      "sha256": "f214bd18adcba20cf6d657e1d7784a5a1334359e22f80a472737f8057f9956d5",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "marketing-engagement-tracker.json",
      "format": "json",
      "table": null,
      "key": "datasets/marketing-engagement-tracker/v1/marketing-engagement-tracker.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/marketing-engagement-tracker.json",
      "bytes": 314636,
      "sha256": "978e64259ada3cbb0616e138a89a005b3310ef79f87bc0ca9d5690f342a90459",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/marketing-engagement-tracker/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/sql/postgres.sql",
      "bytes": 208815,
      "sha256": "0746c1d62c421affa753095636536ec3cda415bf0c060450a3bfa91af86dd4cd",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/marketing-engagement-tracker/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/sql/mysql.sql",
      "bytes": 208126,
      "sha256": "18c6d4980b652e6a2de67e9eb9c463ef8f98c79a73355869aef5c1ba2fc59c56",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/marketing-engagement-tracker/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/sql/mssql.sql",
      "bytes": 211739,
      "sha256": "79ae21051ef65ac14a48e74de578c79a24a199d10daadbda52b8798a70b81d6e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/marketing-engagement-tracker/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/sql/sqlite.sql",
      "bytes": 207844,
      "sha256": "f43ed87bbeaa9441e57b6f466bd3b388a23849470c68376f44842e3d66b00ab8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/marketing-engagement-tracker/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/prisma/seed.ts",
      "bytes": 288960,
      "sha256": "6940dedadabae19dbcf206e54cd57a79404ca68e076b079fb649fff85306720b",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/marketing-engagement-tracker/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/marketing-engagement-tracker/v1/django/fixtures.json",
      "bytes": 367786,
      "sha256": "a3de73af6281826e9a7d902b9179fe918ec6b8918ad716920756a54c96d8e28d",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768553664,
  "updatedAt": 1788768553664
}
