-
Notifications
You must be signed in to change notification settings - Fork 4
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
PIDP-898 Add Snowplow web tracker #519
base: develop
Are you sure you want to change the base?
Conversation
Paahn
commented
Apr 24, 2024
•
edited
Loading
edited
- Adds Snowplow web tracker that reports to government instance of Snowplow
- From Snowplow quickstart docs the collector configuration descriptions:
- app_id -> Unique identifier for website/application. Type: string
- platform -> The platform the app runs on. Examples: web, mob, app. Type: string
- forceSecureTracker -> Normally the protocol (http or https) used by the Tracker to send events to a collector is the same as the protocol of the current page. You can force it to use https by setting the forceSecureTracker field of the configuration object to true.
- cookieLifetime -> Set the cookie lifetime. Type: int
- contexts -> Configure context entities to add to all events. Type: object
var collector = 'spm.apps.gov.bc.ca'; | ||
window.snowplow('newTracker', 'rt', collector, { | ||
appId: 'Snowplow_standalone', | ||
cookieLifetime: 86400 * 548, |
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.
why specifically the 548?
Can we keep this number in any config and use it here ?. Later if we want to change the cookieLifetime then simply changing the config without changing this snowplow.js file will work.
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 part of testing environment code that we were asked to add as is to the application, to send data from our PR deployed environment for now. It is still unclear how/if snowplow tracking will be utilized.
window.snowplow('newTracker', 'rt', collector, { | ||
appId: 'Snowplow_standalone', | ||
cookieLifetime: 86400 * 548, | ||
platform: 'web', |
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.
Just curious. Then it will report only in web not in mobile ?
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.
In this case Snowplow is referring to 'web' as client side tracking. Reference docs
This reverts commit 0b9c3e3.
|