Skip to content
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

Add AB test to use propertyId in CMP sourcepoint config #1507

Merged
merged 8 commits into from
Jun 20, 2024

Conversation

Jakeii
Copy link
Member

@Jakeii Jakeii commented Jun 3, 2024

What are you changing?

Testing the suggested change from sourcepoint documentation, to use propertyId rather than propertyHref

Most of the world uses a single id, but Australia has their own for some reason.

Why?

When using propertyHref sourcepoint uses an extra network request to determine consent, currently there's 2-3 requests depending on if there are any changes on sourcepoint's side i.e. to the vendorlist. After this change it will be reduced to 1-2.

This should speed up getting consent by 50-33% as it appears to be mostly network bound, and therefore anything else that waits for consent, e.g. advertising.

Before:

Screenshot 2024-05-23 at 13 30 02

After:

Screenshot 2024-05-23 at 13 29 33

Copy link

changeset-bot bot commented Jun 3, 2024

🦋 Changeset detected

Latest commit: d422d4f

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jun 3, 2024

Tip

Once this PR is ready to go, add the run_chromatic label to run the Chromatic tests.

This saves us a lot of money by not running the tests before we need them.

@Jakeii Jakeii marked this pull request as ready for review June 18, 2024 09:04
@Jakeii Jakeii requested review from a team as code owners June 18, 2024 09:04
@Jakeii Jakeii added the run_chromatic Runs chromatic when label is applied label Jun 18, 2024
Copy link

@emma-imber emma-imber left a comment

Choose a reason for hiding this comment

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

Looks good from a commercial perspective!

@Jakeii Jakeii requested review from a team as code owners June 18, 2024 09:40
@Jakeii Jakeii added the 🐥 Canaries Triggers canary releases of any packages with changesets waiting. label Jun 19, 2024
@Jakeii Jakeii changed the title Add AB test to use propertyId instead of propertyHref in CMP sourcepoint config Add AB test to use propertyId in CMP sourcepoint config Jun 20, 2024
Copy link
Contributor

@akinsola-guardian akinsola-guardian left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

@Jakeii Jakeii merged commit 1ab10f7 into main Jun 20, 2024
18 of 19 checks passed
@Jakeii Jakeii deleted the jlk/sourcepoint-propertyid branch June 20, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐥 Canaries Triggers canary releases of any packages with changesets waiting. @guardian/libs 📦 npm Affects a @guardian package on NPM run_chromatic Runs chromatic when label is applied
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants