-
Notifications
You must be signed in to change notification settings - Fork 0
Track UTM tags with the REFERRER call #27
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
Conversation
072fd88
to
e544df8
Compare
e82953a
to
e8f1689
Compare
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.
Referrer and utm tags are different things, Kale named utm tags as attribute. So we should separate this functionality in my opinion or remove attribute
function. Let's discuss it during stand up
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.
Seems good, the granularity of tests also gives me confidence.
From @xitronix comment tho, seems you two want to change this, so I'll just comment and feel free to re-request review after your discussion.
e8f1689
to
e238b08
Compare
@xitronix I agree with your comment. What would you say if we:
|
I agree, the only thing which i want to specfy is that attributes should look like :
|
|
e238b08
to
9b65fed
Compare
src/ArcxAnalyticsSdk.ts
Outdated
url?: string | ||
referrer?: string | ||
utm?: { | ||
source?: string | ||
medium?: string | ||
campaign?: string | ||
} |
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.
@stuart-watt this would be the attribute structure of the FIRST_PAGE_VISIT
event. Would you like to change anything?
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.
This is perfect for me, no changes required @gtupak
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.
It would actually be simpler on my end if the url
, referrer
, source
, medium
and campaign
were all on the same level. i.e. no need for the utm
key. Since I know what source
, medium
and campaign
are UTM tags, I don't see a need to explicitly have a nested utm dictionary.
Although I can work with the structure above
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.
I find it better structured this way. In case we want to add more information to this call in the future, we can add other nested objects inside based on their category. If we put all of them at the same level it might create confusion in the future and increase tech debt potential.
79a1e2c
to
ebccb95
Compare
add window object typing rm comments and log do not save the url on the window object and add medium option to attribute call make the current url private add arcx analyticx provider and CRA example project log page events track event clicks on console view update readme fix installations add missing peer dependencies ignore webpack config ts to avoid eslint errors update header and favicon support react versions >=16 improve example repo move the helper outside the analytics sdk class add window object typing rm comments and log do not save the url on the window object and add medium option to attribute call make the current url private add arcx analyticx provider and CRA example project log page events track event clicks on console view update readme fix installations add missing peer dependencies ignore webpack config ts to avoid eslint errors add react testing library add first provider test add remaining provider tests add coverage report 100% coverage on provider test attribution event rm log simplify button clicks log test (debugging) rm log add missing peer dep adjust comments move the helper outside the analytics sdk class add window object typing rm comments and log do not save the url on the window object and add medium option to attribute call make the current url private add arcx analyticx provider and CRA example project log page events track event clicks on console view update readme fix installations add missing peer dependencies ignore webpack config ts to avoid eslint errors update header and favicon support react versions >=16 improve example repo move the helper outside the analytics sdk class add window object typing rm comments and log do not save the url on the window object and add medium option to attribute call make the current url private add arcx analyticx provider and CRA example project log page events track event clicks on console view update readme fix installations add missing peer dependencies ignore webpack config ts to avoid eslint errors add react testing library add first provider test add remaining provider tests add coverage report 100% coverage on provider test attribution event rm log simplify button clicks log test (debugging) rm log auto-track utm tags as part of the REFERRER call, rename campaignId to campaign
f9a6f60
to
52a21fe
Compare
🎉 This PR is included in version 1.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
At the initial page visit, add the
source
,medium
andcampaign
as parameters to theREFERRER
event call if their respective UTM tags are present in the url (utm_source
,utm_medium
andutm_campaign
, respectively).@stuart-watt, I renamed
campaignId
tocampaign
fyi, to match theutm
tag namings, in case you need to change anything on your end.