Skip to content

Bump tracker-js to 5.1.3 - #16697

Merged
martha-simmons merged 7 commits into
mainfrom
bump-tracker-js
Sep 14, 2026
Merged

martha-simmons merged 7 commits into
mainfrom
bump-tracker-js

Conversation

@martha-simmons

@martha-simmons martha-simmons commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

What does this change?

Bump tracker-js dependency to version 5.1.3. This version supports fronts tests tracking by reading the data-fronts-test-uuid attribute on a container where a test is running and attaching the uuid to page views referred from that container.

Why?

Enable tracking fronts ab tests

How has this change been tested?

Manual testing

  • Ran make dev
  • Visited http://localhost:3030/
  • Clicked around and confirmed that tracker-js sent requests to
    https://ophan.theguardian.com/img/1 and
    https://ophan.theguardian.com/img/2 as expected

@martha-simmons
martha-simmons requested a review from a team as a code owner September 8, 2026 10:15
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

🚀 Image pushed to AWS ECR

Image digest: sha256:a58052d0cb2034c46663b3c5d308d695992c6647c6b893ec9d777596185b5e26

🐛 Run the image locally

The following can be used to run the image locally:

# Refer to image using the immutable digest. Find alternatives below.
IMAGE_IDENTIFIER="@sha256:a58052d0cb2034c46663b3c5d308d695992c6647c6b893ec9d777596185b5e26"

# Refer to image using branch tag
# IMAGE_IDENTIFIER=":branch-bump-tracker-js"

# Refer to image using build tag
# IMAGE_IDENTIFIER=":build-31092"

# Refer to image via the GitHub commit SHA tag
# IMAGE_IDENTIFIER=":sha-34a0c80b928d3ef8bb4b98fc3fbbf81ad1aecb21"

# Set environment variables for the AWS CLI
AWS_PROFILE="<A_PROFILE_FROM_JANUS>"
AWS_DEFAULT_REGION="eu-west-1"

IMAGE_ACCOUNT_ID=$(aws ssm get-parameter --name /organisation/accounts/artifacts --query "Parameter.Value" --output text)
REGISTRY="${IMAGE_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com"
IMAGE="${REGISTRY}/guardian/dotcom-rendering${IMAGE_IDENTIFIER}"

# Login to AWS ECR https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html
aws ecr get-login-password | docker login --username AWS --password-stdin $REGISTRY

# Pull the image
docker pull $IMAGE

# Run the image. You'll likely need to set additional flags. See https://docs.docker.com/reference/cli/docker/container/run.
docker run $IMAGE

From guardian/actions-publish-image.

@martha-simmons martha-simmons added the Dependencies Pull requests that update a dependency file label Sep 8, 2026
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

@groakland groakland added this to the A|B Fronts milestone Sep 9, 2026

@emma-imber emma-imber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested locally against a headline test on CODE and it works well 🎉

@emma-imber emma-imber added the run_chromatic Runs chromatic when label is applied label Sep 10, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Sep 10, 2026
@emma-imber emma-imber added the run_chromatic Runs chromatic when label is applied label Sep 14, 2026
@github-actions github-actions Bot removed the run_chromatic Runs chromatic when label is applied label Sep 14, 2026
@martha-simmons
martha-simmons added this pull request to the merge queue Sep 14, 2026
Merged via the queue into main with commit 0eba245 Sep 14, 2026
31 checks passed
@martha-simmons
martha-simmons deleted the bump-tracker-js branch September 14, 2026 11:55
@gu-prout

gu-prout Bot commented Sep 14, 2026

Copy link
Copy Markdown

Seen on PROD (merged by @martha-simmons 8 minutes and 3 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file Headline-A|B-Testing Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants