-
Notifications
You must be signed in to change notification settings - Fork 0
Reorganize the tracking context #35
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
base: master
Are you sure you want to change the base?
Conversation
83d16f2 to
79f08d0
Compare
79f08d0 to
21a92d9
Compare
| additional_params = parse_additional_params(params) | ||
| params = Map.merge(core_params, additional_params) | ||
|
|
||
| ua = parse_user_agent(conn) |
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.
What does ua stand for? user-agent?
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.
yes
| end) | ||
| end | ||
|
|
||
| defp build_event_attrs(params, ua, uri, host, query, ref, location_details) do |
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.
Maybe build a type out of this and extract to separate module as a struct?
| @@ -0,0 +1,80 @@ | |||
| defmodule Plausible.Test.EventHelpers do | |||
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.
plausible_event_helpers maybe to indicate the scope of the file?
No description provided.