-
Notifications
You must be signed in to change notification settings - Fork 11
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 for LinkBundle and Link #89
base: main
Are you sure you want to change the base?
Conversation
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).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- Client/Shared/LinkBundleDetails.razor: Evaluated as low risk
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-beach-0248a5a0f-89.eastus2.5.azurestaticapps.net |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Azure Static Web Apps: Your stage site is ready! Visit it here: https://polite-beach-0248a5a0f-89.eastus2.5.azurestaticapps.net |
Fixes #85
Implement tracking for DateTime and Referrer Data for
LinkBundle
and Clicks and DateTime forLink
.Shared/LinkBundle.cs
CreatedDate
property to track the creation date of theLinkBundle
.ReferrerData
property to track the referrer data of theLinkBundle
.Shared/Link.cs
Clicks
property to track the number of clicks for theLink
.CreatedDate
property to track the creation date of theLink
.Api/Functions/CreateLinkBundle.cs
CreatedDate
property of theLinkBundle
to the current date and time when creating a newLinkBundle
.ReferrerData
property of theLinkBundle
to the referrer data from the request headers.Api/Functions/GetLinkBundle.cs
Clicks
property of eachLink
when aLinkBundle
is retrieved.CreatedDate
property of eachLink
to the current date and time when aLinkBundle
is retrieved.Client/Shared/LinkBundleDetails.razor
CreatedDate
property of theLinkBundle
.ReferrerData
property of theLinkBundle
.Client/Shared/LinkBundleItem.razor
Clicks
property of theLink
.CreatedDate
property of theLink
.For more details, open the Copilot Workspace session.