Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Analytics #85

Open
burkeholland opened this issue Jul 26, 2024 · 0 comments · May be fixed by #89
Open

Implement Analytics #85

burkeholland opened this issue Jul 26, 2024 · 0 comments · May be fixed by #89
Assignees

Comments

@burkeholland
Copy link
Contributor

What do we need to track...

LinkBundle

  • DateTime
  • Referrer Data (This should be parsed into the respective fields and stored as such)

Link

  • Clicks
  • DateTime
@burkeholland burkeholland self-assigned this Aug 15, 2024
jongalloway added a commit that referenced this issue Jan 8, 2025
Fixes #85

Implement tracking for DateTime and Referrer Data for `LinkBundle` and Clicks and DateTime for `Link`.

* **Shared/LinkBundle.cs**
  - Add `CreatedDate` property to track the creation date of the `LinkBundle`.
  - Add `ReferrerData` property to track the referrer data of the `LinkBundle`.

* **Shared/Link.cs**
  - Add `Clicks` property to track the number of clicks for the `Link`.
  - Add `CreatedDate` property to track the creation date of the `Link`.

* **Api/Functions/CreateLinkBundle.cs**
  - Set the `CreatedDate` property of the `LinkBundle` to the current date and time when creating a new `LinkBundle`.
  - Set the `ReferrerData` property of the `LinkBundle` to the referrer data from the request headers.

* **Api/Functions/GetLinkBundle.cs**
  - Increment the `Clicks` property of each `Link` when a `LinkBundle` is retrieved.
  - Update the `CreatedDate` property of each `Link` to the current date and time when a `LinkBundle` is retrieved.

* **Client/Shared/LinkBundleDetails.razor**
  - Display the `CreatedDate` property of the `LinkBundle`.
  - Display the `ReferrerData` property of the `LinkBundle`.

* **Client/Shared/LinkBundleItem.razor**
  - Display the `Clicks` property of the `Link`.
  - Display the `CreatedDate` property of the `Link`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/the-urlist/blazor-static-web-apps/issues/85?shareId=XXXX-XXXX-XXXX-XXXX).
@jongalloway jongalloway linked a pull request Jan 8, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant