---
title: Deploy Ackee with AI on Blossom
url: "/deploy/ackee/"
canonical_url: https://blossom88.com/deploy/ackee/
markdown_url: https://blossom88.com/deploy/ackee.md
summary: Run Ackee with managed MongoDB and track a pageview in a private website
  report.
categories:
- deployment
- analytics
- mongodb
stack:
- JavaScript
- Node.js
- React
- GraphQL
- MongoDB
---

# Deploy Ackee with AI on Blossom

[Ackee](https://github.com/electerious/Ackee) is a lightweight website
analytics app. It shows views, popular pages, and referrers in a private
dashboard.

![Open the private storefront report.](/deploy/assets/images/ackee/storefront-report.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Ackee on Blossom with managed MongoDB. Help me track my first pageview.
>
> Follow this guide: https://blossom88.com/deploy/ackee/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## How It Runs

| Part | Role | Where |
|---|---|---|
| Ackee | Serve the dashboard and receive pageviews | App Capacity |
| MongoDB | Store sites and pageview history | Blossom Managed Data |

## Deploy Ackee

Have a site ready where you can add a tracking script. Open Ackee
through Blossom Account access and sign in with your Ackee credentials.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Run the official Ackee image on port 3000. Link
[Managed MongoDB](https://docs.blossom88.com/docs/databases/mongodb/)
as `MONGODB_URL`. Map it to `ACKEE_MONGODB` in startup and the
health check. Set owner credentials with `ACKEE_USERNAME` and
`ACKEE_PASSWORD`. Set `ACKEE_ALLOW_ORIGIN` to the exact HTTPS origin of
the site you want to track.

</details>

## Track Your First Visit

Add a domain in **Settings** and copy its tracker snippet to your site.
Visit the site in a separate browser and check **Pages** in Ackee.

> **Ask your AI agent:** Add my site to Ackee and help me check that a test visit shows up.

> Follow this guide: https://blossom88.com/deploy/ackee/



<details class="optional-reading" markdown="1">
<summary>Tracking paths</summary>

Keep the dashboard gated and allow `/tracker.js` and `/api`
for public collection. Ackee's GraphQL API receives visits and
requires an Ackee login for reading reports.

</details>

## Keep Your Report Across Updates

Redeploy Ackee with the same MongoDB link. Sign in and check that the
original visit is still there, then visit a different page.

> **Ask your AI agent:** Update Ackee and check that I can see the original visit and a new one.

> Follow this guide: https://blossom88.com/deploy/ackee/



<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom environment:deploy --id environment-100 --follow
    blossom container:list --service service-web-100

</details>

![See the original and new pageviews after a redeploy.](/deploy/assets/images/ackee/storefront-pages.webp)

## What You Get

- A private dashboard for website traffic
- A tracking script for a site you control
- Pageview history stored in managed MongoDB

Tested on Blossom: A fresh sign-in reopened the first visit after Container replacement, and a second page appeared in the same report.
