Skip to content

Bump tracker-js to 5.1.3 - #16697

Open
martha-simmons wants to merge 4 commits into
mainfrom
bump-tracker-js
Open

Bump tracker-js to 5.1.3#16697
martha-simmons wants to merge 4 commits into
mainfrom
bump-tracker-js

Conversation

@martha-simmons

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

Copy link
Copy Markdown

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:5db5818f7f36471fcae648f5c53c44f5550054733ec4b0f60d3049b8030f52c6

🐛 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:5db5818f7f36471fcae648f5c53c44f5550054733ec4b0f60d3049b8030f52c6"

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

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

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

# 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
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants