Giter Site home page Giter Site logo

ikaadil / digital-advertisement-attribution-analytics Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 20 KB

The repository includes various analytics techniques and models that can be used to identify which campaigns are generating the most traffic, leads, and conversions. Additionally, the repository also provides various data visualization tools that can be used to create reports and dashboards to monitor the performance of digital advertising campaign

Python 100.00%
campaign-analytics digital-advertising flask flask-application flask-sqlalchemy mvc-pattern

digital-advertisement-attribution-analytics's Introduction

digital-advertisement-attribution-analytics

Features

  • Add signup event
  • Get distinct user count since time
  • Add pageview event
  • Get analysis which contain pageview count and successfull advertisement count

Installation

It requires Python3, pipenv to run. Install the dependencies

pipenv shell
python app.py

Api

Add event: POST http://127.0.0.1:5000/event

Payload

{
  "name": "signup",
  "fingerprint": "b998efcb-1af3-4149-9b56-34c4482f6691",
  "user_id": "5566bd0538665441d6ad80011",
  "created_at": "2021-01-02 12:33:41.127641"
}

Response

{
    "status": "successfully added"
}

Get distinct user count since a date time

GET http://127.0.0.1:5000/event?date_time=2023-02-01

Response

{
    "number_of_unique_user": "10"
}

Add pageview event

POST http://127.0.0.1:5000/pageview

Payload

{
  "fingerprint": "b998efcb-1af3-4149-9b56-34c4482f6691",
  "user_id": null,
  "url": "https://www.company.com/en/library",
  "referrer_url": "https://www.google.com",
  "created_at": "2023-01-01 12:33:41.127641"
}

Response

{
    "status": "successfully added"
}

Get analysis

GET http://127.0.0.1:5000/pageview?date_time=2022-02-06&show_succeeded_ad=true

Response

{
  "pageview_count": [
    {
      "null": 1
    },
    {
      "facebook": 1
    },
    {
      "google": 3
    }
  ],
  "succeeded_ad_count": [
    {
      "null": 1
    },
    {
      "google": 1
    }
  ]
}

Here null means direct visit

digital-advertisement-attribution-analytics's People

Contributors

ikaadil avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.