Change setting in Portal snowplow file

Open Beginner friendly
#2,956 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript
Domain
analytics

Research direction

Locate the portal's assets/snowplow.js file and inspect the collector setting shown in the issue. Change the collector value from spm.apps.gov.bc.ca to spt.apps.gov.bc.ca, then verify the file serves the expected value at the provided portal URL.

Written by the indexing model from the issue text.

Description

Bug

Describe the Bug

It looks like there’s a small error in the tracking setup on https://portal.alc.gov.bc.ca/login
In the Javascript tracking code, the site is set to send tracking data to our Dev/Test data pipeline (which doesn’t feed into dashboards).

This setting is made in the https://portal.alc.gov.bc.ca/assets/snowplow.js file with this line:
var collector = "spm.apps.gov.bc.ca";

If you can get your developer to change that to
var collector = "spt.apps.gov.bc.ca";

(changing “spm” to “spt”), I believe tracking should start working as expected.

Expected Behaviour
var collector = "spt.apps.gov.bc.ca";

Actual Behaviour
var collector = "spm.apps.gov.bc.ca";

** Steps To Reproduce**
Steps to reproduce the behaviour -> go to https://portal.alc.gov.bc.ca/assets/snowplow.js file

** Additional context**
Snowplow helps us track analytics between the Portal and the ALC website so we can understand how people use the two sites in conjunction.

Confirm this task meets our team Definition of Ready (DoR) before moving to the Next Sprint column.

Confirm this task meets our team Definition of Done (DoD) before moving to the Done column.

Dominant language
TypeScript
Stars
10
Forks
0
Avg merge
21h 40m
Merged PRs (30d)
27

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bcgov/alcs

All issues in bcgov/alcs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.