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

Backup the client ID in local storage #29484

Closed
dvoytenko opened this issue Jul 23, 2020 · 29 comments
Closed

Backup the client ID in local storage #29484

dvoytenko opened this issue Jul 23, 2020 · 29 comments
Assignees

Comments

@dvoytenko
Copy link
Contributor

It looks like we're using a client side cookie for a CID we create on the origin site. It appears that the client-side cookie is fragile and could be removed after 24 hours. Since the intention of client ID is to last longer than that, we could back it up by the local storage. Here's the related thread of cookie-vs-localstorage, which clarifies that the local storage is a more appropriate storage mechanism in some cases.

@zhouyx
Copy link
Contributor

zhouyx commented Jul 24, 2020

The 24 hours limit was introduced by ITP2.2

I'm not sure about switching to local storage though due to a few reasons

  1. local storage doesn't have an expiration date which could be an issue when storing user id
  2. Safari also put 7 days cap on local storage. The help here is limited
  3. Analytics vendors may rely on the cookie value on the origin site, non AMP pages. Switching to local storage would require analytics vendors to change their tagging script as well.

@kushal
Copy link
Contributor

kushal commented Jul 24, 2020

Re (2) , the stated policy is 7 days without a visit, so for a site a user uses frequently it should be a big improvement?

@dvoytenko
Copy link
Contributor Author

@zhouyx I was wondering if this worked not as an alternative, but just as a backup. E.g. getCookie() || localStorage.get(). In theory, we could always set the cookie back when backup is available. IMHO the distinction between a cookie and the local storage seems very arbitrary to me from the point of view of that spec.

@zhouyx
Copy link
Contributor

zhouyx commented Jul 24, 2020

AMP also update the cookie expiration time on user revisit if the value is created by AMP (with amp- prefix). But I agree the value is much more likely to persist with a 7 days window compared to 1 day.

I can see us using localStorage as an opt-in backup method on non proxy origin with individual analytics vendor opt-in.

@dvoytenko
Copy link
Contributor Author

Wouldn't any analytics vendor want to have the right data?

@zhouyx
Copy link
Contributor

zhouyx commented Aug 1, 2020

: ) Not sure about that.
cc @avimehta @zikas @cory-work @joshschwartz for feedback. Thanks

@joshschwartz
Copy link
Contributor

Thanks for looping me in. I agree that analytics would benefit from using localstorage as a backup, and we'd definitely change our code to accommodate it were the option available.

@cory-work
Copy link
Contributor

I like this strategy

@dvoytenko
Copy link
Contributor Author

@zhouyx Should we take this to the design review?

@zhouyx
Copy link
Contributor

zhouyx commented Aug 7, 2020

Looks like a well received feature : ) Definitely! Let me work on the design proposal. I think all we need is to provide the current CLIENT_ID API an additional opt-in param.

@avimehta
Copy link
Contributor

avimehta commented Aug 7, 2020

an additional opt-in param works from gtag/googleanalytics perspective. Would need to go through a review before starting the use of localstorage.

@kushal
Copy link
Contributor

kushal commented Aug 12, 2020

Fwiw we're receiving a growing number of user complaints about getting logged out frequently. Please let us know if we can help accelerate a fix.

@zhouyx
Copy link
Contributor

zhouyx commented Aug 12, 2020

Here's the proposed design

CLIENT_ID(scope, opt_userNotificationId, opt_cookieName, opt_storageName).

When the opt_storageName is defined and when the AMP doc is served from origin, AMP will use the value from the local storage entry as back up, and also write the value from localStorage to opt_cookieName

AMP will write the client id value to provided storage entry name in the following cases

  1. client id value from opt_cookieName is retrieved by the CLIENT_ID API and is an AMP created id starts with amp-
  2. When AMP first creates the client id

Open question: Since localStorage value never expire, does AMP needs to clean up expired cid value.

@joshschwartz
Copy link
Contributor

I think that AMP should ideally clean up expired values. When analytics companies (at least us) talk about cookie expiration policies, we generally think we're guaranteeing a user that we won't persist their ID for longer than N days. If the ID is persisting in local storage as a backup for longer, that violates the spirit of that policy, albeit not the letter of a cookie expiration policy.

@kushal
Copy link
Contributor

kushal commented Aug 13, 2020 via email

@zhouyx
Copy link
Contributor

zhouyx commented Aug 14, 2020

I agree, AMP should clean up expired value in localStorage. I see the AMP created CID cookie has an expiration time of 1 year, wonder if we can put the same expiration time to CID backup in localStorage.
@lannka Could you confirm that 1 year expiration time is always the case?

@dvoytenko
Copy link
Contributor Author

@zhouyx expiration aside, I'm still wondering why we want an API change. I see this more of a "preserving the existing" API feature.

@zhouyx
Copy link
Contributor

zhouyx commented Aug 18, 2020

I prefer opt-in for two reasons

  1. To keep the behavior the same when navigating to a non AMP page vs an AMP page. When a vendor opt in to use localStorage they should have done the same to their non AMP solution.
  2. To assign the storage name. So when the CID is not created by AMP, AMP still knows where to retrieve it. Vice versa.

@dvoytenko
Copy link
Contributor Author

To assign the storage name. So when the CID is not created by AMP, AMP still knows where to retrieve it. Vice versa.

Can we at least default the name to the opt_cookieName?

To keep the behavior the same when navigating to a non AMP page vs an AMP page. When a vendor opt in to use localStorage they should have done the same to their non AMP solution.

I'm not sure this is a critical part, tbh, if we were to restore a cookie from the local storage's "backup" - things would be fairly transparent then.

@zhouyx
Copy link
Contributor

zhouyx commented Aug 20, 2020

Using opt_cookieName would work!

I'm not sure this is a critical part, tbh, if we were to restore a cookie from the local storage's "backup" - things would be fairly transparent then.

True. @avimehta @zikas @cory-work @joshschwartz What's your thought here? Is opt-in required or preferred? Or can AMP store/retrieve CID value from storage by default as an internal implementation detail? Thanks

@kushal
Copy link
Contributor

kushal commented Sep 2, 2020

Bump. FWIW, agree with @dvoytenko that if services want to match this behavior on the non-AMP side, that's easily done, no need for AMP to worry about it.

@dvoytenko
Copy link
Contributor Author

Bump as well.

@zhouyx
Copy link
Contributor

zhouyx commented Sep 3, 2020

@micajuine-ho is working on the design. We'll bring the topic to the next design review.

Meanwhile, feedback I get is: Is fine for AMP to set the default behavior to opt-in or opt-out, but it is preferred to have a way to disable the feature.

@zhouyx zhouyx assigned micajuine-ho and unassigned zhouyx and lannka Sep 3, 2020
@micajuine-ho
Copy link
Contributor

Hi all, here is the design doc for this feature: https://docs.google.com/document/d/1INLsmzjgj_ehCXW2kadq_mU1WcWgydpxof9abXqsdik/edit?usp=sharing

I will be taking this to design review on Wednesday. Please feel free to join the conversation at that time, or here on this thread.

github-actions bot pushed a commit that referenced this issue Nov 1, 2021
Sweep experiments last flipped globally up to 2021-05-04:

- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `amp-cid-backup`: #29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `src/service/cid-impl.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/main/build-system/tasks/sweep-experiments/README.md#followup)
github-actions bot pushed a commit that referenced this issue Dec 1, 2021
Sweep experiments last flipped globally up to 2021-06-03:

- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `amp-cid-backup`: #29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `src/service/cid-impl.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/main/build-system/tasks/sweep-experiments/README.md#followup)
github-actions bot pushed a commit that referenced this issue Jan 1, 2022
Sweep experiments last flipped globally up to 2021-07-04:

- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `amp-cid-backup`: #29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `src/service/cid-impl.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/main/build-system/tasks/sweep-experiments/README.md#followup)
github-actions bot pushed a commit that referenced this issue Feb 1, 2022
Sweep experiments last flipped globally up to 2021-08-04:

- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1
- (2021-07-22, 7b1df94) `amp-story-page-attachment-ui-v2`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `amp-cid-backup`: #29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `src/service/cid-impl.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/main/build-system/tasks/sweep-experiments/README.md#followup)
github-actions bot pushed a commit that referenced this issue Feb 7, 2022
Sweep experiments last flipped globally up to 2021-08-10:

- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1
- (2021-07-22, 7b1df94) `amp-story-page-attachment-ui-v2`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `amp-cid-backup`: #29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `src/service/cid-impl.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/main/build-system/tasks/sweep-experiments/README.md#followup)
github-actions bot pushed a commit that referenced this issue Feb 22, 2022
Sweep experiments last flipped globally up to 2021-08-25:

- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1
- (2021-08-19, 81ead05) `story-load-inactive-outside-viewport`: 1
- (2021-07-22, 7b1df94) `amp-story-page-attachment-ui-v2`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `amp-cid-backup`: #29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `extensions/amp-story/1.0/amp-story.js`
- [ ] `src/service/cid-impl.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/main/build-system/tasks/sweep-experiments/README.md#followup)

---

### ⚠️ HTML files may still contain references

The following HTML files contain references to experiment names which may be stale and should be manually removed:

- [ ] `examples/amp-story/performance/visibility.html`

Refer to the removal guide for [suggestions on handling these HTML files.](https://github.com/ampproject/amphtml/blob/main/build-system/tasks/sweep-experiments/README.md#followup:html)
github-actions bot pushed a commit to mohammed-ibra/amphtml that referenced this issue Mar 1, 2024
Sweep experiments last flipped globally up to 2023-03-01:

- (2021-01-20, a9e2778) `adsense-ad-size-optimization`: 1
- (2020-11-19, cac0248) `amp-accordion-display-locking`: 1
- (2020-08-14, 77ced1d) `expand-json-targeting`: 1
- (2021-01-27, b738789) `visibility-trigger-improvements`: 1
- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-12, 1b7583d) `tcf-post-message-proxy-api`: 1
- (2021-03-17, db781bd) `amp-consent-granular-consent`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `adsense-ad-size-optimization`: ampproject#24165
- [ ] `visibility-trigger-improvements`: ampproject#26823
- [ ] `amp-cid-backup`: ampproject#29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `extensions/amp-accordion/0.1/amp-accordion.js`
- [ ] `extensions/amp-accordion/0.1/test/test-amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/test/test-amp-accordion.js`
- [ ] `extensions/amp-analytics/0.1/analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-events.js`
- [ ] `extensions/amp-consent/0.1/amp-consent.js`
- [ ] `extensions/amp-consent/0.1/consent-ui.js`
- [ ] `extensions/amp-consent/0.1/test/test-amp-consent.js`
- [ ] `extensions/amp-consent/0.1/test/test-consent-ui.js`
- [ ] `src/custom-element.js`
- [ ] `src/service/cid-impl.js`
- [ ] `test/unit/test-custom-element.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup)

---

### ⚠️ HTML files may still contain references

The following HTML files contain references to experiment names which may be stale and should be manually removed:

- [ ] `examples/accordion.amp.html`
- [ ] `examples/amp-consent/amp-consent-3p-postmessage.html`
- [ ] `test/manual/amp-analytics/amp-analytics-multi-selector.html`
- [ ] `test/manual/amp-consent/amp-consent-granular-consent.html`

Refer to the removal guide for [suggestions on handling these HTML files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup:html)
github-actions bot pushed a commit to mohammed-ibra/amphtml that referenced this issue Apr 1, 2024
Sweep experiments last flipped globally up to 2023-04-01:

- (2021-01-20, a9e2778) `adsense-ad-size-optimization`: 1
- (2020-11-19, cac0248) `amp-accordion-display-locking`: 1
- (2020-08-14, 77ced1d) `expand-json-targeting`: 1
- (2021-01-27, b738789) `visibility-trigger-improvements`: 1
- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-12, 1b7583d) `tcf-post-message-proxy-api`: 1
- (2021-03-17, db781bd) `amp-consent-granular-consent`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `adsense-ad-size-optimization`: ampproject#24165
- [ ] `visibility-trigger-improvements`: ampproject#26823
- [ ] `amp-cid-backup`: ampproject#29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `extensions/amp-accordion/0.1/amp-accordion.js`
- [ ] `extensions/amp-accordion/0.1/test/test-amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/test/test-amp-accordion.js`
- [ ] `extensions/amp-analytics/0.1/analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-events.js`
- [ ] `extensions/amp-consent/0.1/amp-consent.js`
- [ ] `extensions/amp-consent/0.1/consent-ui.js`
- [ ] `extensions/amp-consent/0.1/test/test-amp-consent.js`
- [ ] `extensions/amp-consent/0.1/test/test-consent-ui.js`
- [ ] `src/custom-element.js`
- [ ] `src/service/cid-impl.js`
- [ ] `test/unit/test-custom-element.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup)

---

### ⚠️ HTML files may still contain references

The following HTML files contain references to experiment names which may be stale and should be manually removed:

- [ ] `examples/accordion.amp.html`
- [ ] `examples/amp-consent/amp-consent-3p-postmessage.html`
- [ ] `test/manual/amp-analytics/amp-analytics-multi-selector.html`
- [ ] `test/manual/amp-consent/amp-consent-granular-consent.html`

Refer to the removal guide for [suggestions on handling these HTML files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup:html)
github-actions bot pushed a commit to mohammed-ibra/amphtml that referenced this issue May 1, 2024
Sweep experiments last flipped globally up to 2023-05-01:

- (2021-01-20, a9e2778) `adsense-ad-size-optimization`: 1
- (2020-11-19, cac0248) `amp-accordion-display-locking`: 1
- (2020-08-14, 77ced1d) `expand-json-targeting`: 1
- (2021-01-27, b738789) `visibility-trigger-improvements`: 1
- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-12, 1b7583d) `tcf-post-message-proxy-api`: 1
- (2021-03-17, db781bd) `amp-consent-granular-consent`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `adsense-ad-size-optimization`: ampproject#24165
- [ ] `visibility-trigger-improvements`: ampproject#26823
- [ ] `amp-cid-backup`: ampproject#29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `extensions/amp-accordion/0.1/amp-accordion.js`
- [ ] `extensions/amp-accordion/0.1/test/test-amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/test/test-amp-accordion.js`
- [ ] `extensions/amp-analytics/0.1/analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-events.js`
- [ ] `extensions/amp-consent/0.1/amp-consent.js`
- [ ] `extensions/amp-consent/0.1/consent-ui.js`
- [ ] `extensions/amp-consent/0.1/test/test-amp-consent.js`
- [ ] `extensions/amp-consent/0.1/test/test-consent-ui.js`
- [ ] `src/custom-element.js`
- [ ] `src/service/cid-impl.js`
- [ ] `test/unit/test-custom-element.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup)

---

### ⚠️ HTML files may still contain references

The following HTML files contain references to experiment names which may be stale and should be manually removed:

- [ ] `examples/accordion.amp.html`
- [ ] `examples/amp-consent/amp-consent-3p-postmessage.html`
- [ ] `test/manual/amp-analytics/amp-analytics-multi-selector.html`
- [ ] `test/manual/amp-consent/amp-consent-granular-consent.html`

Refer to the removal guide for [suggestions on handling these HTML files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup:html)
github-actions bot pushed a commit to mohammed-ibra/amphtml that referenced this issue Jun 1, 2024
Sweep experiments last flipped globally up to 2023-06-01:

- (2021-01-20, a9e2778) `adsense-ad-size-optimization`: 1
- (2020-11-19, cac0248) `amp-accordion-display-locking`: 1
- (2020-08-14, 77ced1d) `expand-json-targeting`: 1
- (2021-01-27, b738789) `visibility-trigger-improvements`: 1
- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-12, 1b7583d) `tcf-post-message-proxy-api`: 1
- (2021-03-17, db781bd) `amp-consent-granular-consent`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `adsense-ad-size-optimization`: ampproject#24165
- [ ] `visibility-trigger-improvements`: ampproject#26823
- [ ] `amp-cid-backup`: ampproject#29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `extensions/amp-accordion/0.1/amp-accordion.js`
- [ ] `extensions/amp-accordion/0.1/test/test-amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/test/test-amp-accordion.js`
- [ ] `extensions/amp-analytics/0.1/analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-events.js`
- [ ] `extensions/amp-consent/0.1/amp-consent.js`
- [ ] `extensions/amp-consent/0.1/consent-ui.js`
- [ ] `extensions/amp-consent/0.1/test/test-amp-consent.js`
- [ ] `extensions/amp-consent/0.1/test/test-consent-ui.js`
- [ ] `src/custom-element.js`
- [ ] `src/service/cid-impl.js`
- [ ] `test/unit/test-custom-element.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup)

---

### ⚠️ HTML files may still contain references

The following HTML files contain references to experiment names which may be stale and should be manually removed:

- [ ] `examples/accordion.amp.html`
- [ ] `examples/amp-consent/amp-consent-3p-postmessage.html`
- [ ] `test/manual/amp-analytics/amp-analytics-multi-selector.html`
- [ ] `test/manual/amp-consent/amp-consent-granular-consent.html`

Refer to the removal guide for [suggestions on handling these HTML files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup:html)
github-actions bot pushed a commit to mohammed-ibra/amphtml that referenced this issue Jul 1, 2024
Sweep experiments last flipped globally up to 2023-07-01:

- (2021-01-20, a9e2778) `adsense-ad-size-optimization`: 1
- (2020-11-19, cac0248) `amp-accordion-display-locking`: 1
- (2020-08-14, 77ced1d) `expand-json-targeting`: 1
- (2021-01-27, b738789) `visibility-trigger-improvements`: 1
- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-12, 1b7583d) `tcf-post-message-proxy-api`: 1
- (2021-03-17, db781bd) `amp-consent-granular-consent`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `adsense-ad-size-optimization`: ampproject#24165
- [ ] `visibility-trigger-improvements`: ampproject#26823
- [ ] `amp-cid-backup`: ampproject#29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `extensions/amp-accordion/0.1/amp-accordion.js`
- [ ] `extensions/amp-accordion/0.1/test/test-amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/test/test-amp-accordion.js`
- [ ] `extensions/amp-analytics/0.1/analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-events.js`
- [ ] `extensions/amp-consent/0.1/amp-consent.js`
- [ ] `extensions/amp-consent/0.1/consent-ui.js`
- [ ] `extensions/amp-consent/0.1/test/test-amp-consent.js`
- [ ] `extensions/amp-consent/0.1/test/test-consent-ui.js`
- [ ] `src/custom-element.js`
- [ ] `src/service/cid-impl.js`
- [ ] `test/unit/test-custom-element.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup)

---

### ⚠️ HTML files may still contain references

The following HTML files contain references to experiment names which may be stale and should be manually removed:

- [ ] `examples/accordion.amp.html`
- [ ] `examples/amp-consent/amp-consent-3p-postmessage.html`
- [ ] `test/manual/amp-analytics/amp-analytics-multi-selector.html`
- [ ] `test/manual/amp-consent/amp-consent-granular-consent.html`

Refer to the removal guide for [suggestions on handling these HTML files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup:html)
github-actions bot pushed a commit to mohammed-ibra/amphtml that referenced this issue Aug 1, 2024
Sweep experiments last flipped globally up to 2023-08-01:

- (2021-01-20, a9e2778) `adsense-ad-size-optimization`: 1
- (2020-11-19, cac0248) `amp-accordion-display-locking`: 1
- (2020-08-14, 77ced1d) `expand-json-targeting`: 1
- (2021-01-27, b738789) `visibility-trigger-improvements`: 1
- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-12, 1b7583d) `tcf-post-message-proxy-api`: 1
- (2021-03-17, db781bd) `amp-consent-granular-consent`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `adsense-ad-size-optimization`: ampproject#24165
- [ ] `visibility-trigger-improvements`: ampproject#26823
- [ ] `amp-cid-backup`: ampproject#29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `extensions/amp-accordion/0.1/amp-accordion.js`
- [ ] `extensions/amp-accordion/0.1/test/test-amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/test/test-amp-accordion.js`
- [ ] `extensions/amp-analytics/0.1/analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-events.js`
- [ ] `extensions/amp-consent/0.1/amp-consent.js`
- [ ] `extensions/amp-consent/0.1/consent-ui.js`
- [ ] `extensions/amp-consent/0.1/test/test-amp-consent.js`
- [ ] `extensions/amp-consent/0.1/test/test-consent-ui.js`
- [ ] `src/custom-element.js`
- [ ] `src/service/cid-impl.js`
- [ ] `test/unit/test-custom-element.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup)

---

### ⚠️ HTML files may still contain references

The following HTML files contain references to experiment names which may be stale and should be manually removed:

- [ ] `examples/accordion.amp.html`
- [ ] `examples/amp-consent/amp-consent-3p-postmessage.html`
- [ ] `test/manual/amp-analytics/amp-analytics-multi-selector.html`
- [ ] `test/manual/amp-consent/amp-consent-granular-consent.html`

Refer to the removal guide for [suggestions on handling these HTML files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup:html)
github-actions bot pushed a commit to mohammed-ibra/amphtml that referenced this issue Sep 1, 2024
Sweep experiments last flipped globally up to 2023-09-01:

- (2021-01-20, a9e2778) `adsense-ad-size-optimization`: 1
- (2020-11-19, cac0248) `amp-accordion-display-locking`: 1
- (2020-08-14, 77ced1d) `expand-json-targeting`: 1
- (2021-01-27, b738789) `visibility-trigger-improvements`: 1
- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-12, 1b7583d) `tcf-post-message-proxy-api`: 1
- (2021-03-17, db781bd) `amp-consent-granular-consent`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `adsense-ad-size-optimization`: ampproject#24165
- [ ] `visibility-trigger-improvements`: ampproject#26823
- [ ] `amp-cid-backup`: ampproject#29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `extensions/amp-accordion/0.1/amp-accordion.js`
- [ ] `extensions/amp-accordion/0.1/test/test-amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/test/test-amp-accordion.js`
- [ ] `extensions/amp-analytics/0.1/analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-events.js`
- [ ] `extensions/amp-consent/0.1/amp-consent.js`
- [ ] `extensions/amp-consent/0.1/consent-ui.js`
- [ ] `extensions/amp-consent/0.1/test/test-amp-consent.js`
- [ ] `extensions/amp-consent/0.1/test/test-consent-ui.js`
- [ ] `src/custom-element.js`
- [ ] `src/service/cid-impl.js`
- [ ] `test/unit/test-custom-element.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup)

---

### ⚠️ HTML files may still contain references

The following HTML files contain references to experiment names which may be stale and should be manually removed:

- [ ] `examples/accordion.amp.html`
- [ ] `examples/amp-consent/amp-consent-3p-postmessage.html`
- [ ] `test/manual/amp-analytics/amp-analytics-multi-selector.html`
- [ ] `test/manual/amp-consent/amp-consent-granular-consent.html`

Refer to the removal guide for [suggestions on handling these HTML files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup:html)
github-actions bot pushed a commit to mohammed-ibra/amphtml that referenced this issue Oct 1, 2024
Sweep experiments last flipped globally up to 2023-10-01:

- (2021-01-20, a9e2778) `adsense-ad-size-optimization`: 1
- (2020-11-19, cac0248) `amp-accordion-display-locking`: 1
- (2020-08-14, 77ced1d) `expand-json-targeting`: 1
- (2021-01-27, b738789) `visibility-trigger-improvements`: 1
- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-12, 1b7583d) `tcf-post-message-proxy-api`: 1
- (2021-03-17, db781bd) `amp-consent-granular-consent`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `adsense-ad-size-optimization`: ampproject#24165
- [ ] `visibility-trigger-improvements`: ampproject#26823
- [ ] `amp-cid-backup`: ampproject#29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `extensions/amp-accordion/0.1/amp-accordion.js`
- [ ] `extensions/amp-accordion/0.1/test/test-amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/test/test-amp-accordion.js`
- [ ] `extensions/amp-analytics/0.1/analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-events.js`
- [ ] `extensions/amp-consent/0.1/amp-consent.js`
- [ ] `extensions/amp-consent/0.1/consent-ui.js`
- [ ] `extensions/amp-consent/0.1/test/test-amp-consent.js`
- [ ] `extensions/amp-consent/0.1/test/test-consent-ui.js`
- [ ] `src/custom-element.js`
- [ ] `src/service/cid-impl.js`
- [ ] `test/unit/test-custom-element.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup)

---

### ⚠️ HTML files may still contain references

The following HTML files contain references to experiment names which may be stale and should be manually removed:

- [ ] `examples/accordion.amp.html`
- [ ] `examples/amp-consent/amp-consent-3p-postmessage.html`
- [ ] `test/manual/amp-analytics/amp-analytics-multi-selector.html`
- [ ] `test/manual/amp-consent/amp-consent-granular-consent.html`

Refer to the removal guide for [suggestions on handling these HTML files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup:html)
github-actions bot pushed a commit to mohammed-ibra/amphtml that referenced this issue Nov 1, 2024
Sweep experiments last flipped globally up to 2023-11-01:

- (2021-01-20, a9e2778) `adsense-ad-size-optimization`: 1
- (2020-11-19, cac0248) `amp-accordion-display-locking`: 1
- (2020-08-14, 77ced1d) `expand-json-targeting`: 1
- (2021-01-27, b738789) `visibility-trigger-improvements`: 1
- (2021-03-05, 77127c7) `disable-a4a-non-sd`: 1
- (2021-03-12, 1b7583d) `tcf-post-message-proxy-api`: 1
- (2021-03-17, db781bd) `amp-consent-granular-consent`: 1
- (2021-03-23, 1115f6c) `amp-cid-backup`: 1

---

### Cleanup issues

Close these once they've been addressed and this PR has been merged:

- [ ] `adsense-ad-size-optimization`: ampproject#24165
- [ ] `visibility-trigger-improvements`: ampproject#26823
- [ ] `amp-cid-backup`: ampproject#29484

---

### ⚠️ Javascript source files require intervention

The following may contain errors and/or require intervention to remove superfluous conditionals:

- [ ] `extensions/amp-a4a/0.1/amp-a4a.js`
- [ ] `extensions/amp-a4a/0.1/test/test-amp-a4a.js`
- [ ] `extensions/amp-accordion/0.1/amp-accordion.js`
- [ ] `extensions/amp-accordion/0.1/test/test-amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/amp-accordion.js`
- [ ] `extensions/amp-accordion/1.0/test/test-amp-accordion.js`
- [ ] `extensions/amp-analytics/0.1/analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-analytics-root.js`
- [ ] `extensions/amp-analytics/0.1/test/test-events.js`
- [ ] `extensions/amp-consent/0.1/amp-consent.js`
- [ ] `extensions/amp-consent/0.1/consent-ui.js`
- [ ] `extensions/amp-consent/0.1/test/test-amp-consent.js`
- [ ] `extensions/amp-consent/0.1/test/test-consent-ui.js`
- [ ] `src/custom-element.js`
- [ ] `src/service/cid-impl.js`
- [ ] `test/unit/test-custom-element.js`

Refer to the removal guide for [suggestions on handling these modified Javascript files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup)

---

### ⚠️ HTML files may still contain references

The following HTML files contain references to experiment names which may be stale and should be manually removed:

- [ ] `examples/accordion.amp.html`
- [ ] `examples/amp-consent/amp-consent-3p-postmessage.html`
- [ ] `test/manual/amp-analytics/amp-analytics-multi-selector.html`
- [ ] `test/manual/amp-consent/amp-consent-granular-consent.html`

Refer to the removal guide for [suggestions on handling these HTML files.](https://github.com/ampproject/amphtml/blob/master/build-system/tasks/sweep-experiments/README.md#followup:html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants