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

analytics endpoint #503

Open
3 tasks
rodriguesk opened this issue Nov 22, 2023 · 0 comments
Open
3 tasks

analytics endpoint #503

rodriguesk opened this issue Nov 22, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rodriguesk
Copy link
Member

rodriguesk commented Nov 22, 2023

User story

We need user interaction tracked through an endpoint so we can improve their experience by tracking user journeys. We have historically been using google tag manager to track clicks but are switching now to have a dedicated endpoint for it.

Acceptance criteria

  • /analytics POST endpoint with Header: X-Session-Id and body of category, action, label, eventValue, eventTimestamp, and pageUrl
  • includes documentation
  • unit test for adding an event
@rodriguesk rodriguesk added the enhancement New feature or request label Nov 22, 2023
@rodriguesk rodriguesk self-assigned this Nov 22, 2023
rodriguesk added a commit that referenced this issue Nov 22, 2023
@rodriguesk rodriguesk mentioned this issue Nov 22, 2023
4 tasks
danmash added a commit that referenced this issue Nov 22, 2023
rodriguesk added a commit that referenced this issue Nov 24, 2023
* Initial commit for #503

* Modified 2 files

* Fixing some bugs

* Remove init not needed

Remove

* Fixed bugs

* clearer datetime string format documentation.

* Fixed bug with date time

* Lint

* #503 unittests fixed

---------

Co-authored-by: Daniil Mashkin <[email protected]>
rodriguesk added a commit that referenced this issue Nov 24, 2023
* Removed flask-selfdoc from project.

* Update score_nodes.py

added relatedPersonalValues to the GET response of the /feed endpoint to include all the personal values associated with each climate change impact for user's feed.

* run linting

* optional parameter to skip recaptcha

* change spelling

* remove timedelta

* Update installation.md

instructions how to free up port 5000 on macs.

* Cm 499 delete account and data (#501)

* Black formatting

* Extra test to ensure deleted user can't login

* added api documentation

* #499 ondelete="SET NULL" or "CASCADE"

* #499 explicit ondelete action for user foreign keys

* Change route method from POST to DELETE

* switch POST documentation to DELETE in app/static/Climate-Mind_bundled.yml

---------

Co-authored-by: Daniil Mashkin <[email protected]>
Co-authored-by: Daniil Mashkin <[email protected]>

* Analytics endpoint (#504)

* Initial commit for #503

* Modified 2 files

* Fixing some bugs

* Remove init not needed

Remove

* Fixed bugs

* clearer datetime string format documentation.

* Fixed bug with date time

* Lint

* #503 unittests fixed

---------

Co-authored-by: Daniil Mashkin <[email protected]>

---------

Co-authored-by: Jason Hutson <[email protected]>
Co-authored-by: Svenstar74 <[email protected]>
Co-authored-by: Daniil Mashkin <[email protected]>
Co-authored-by: Daniil Mashkin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant