amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Support for CCPA Implementation

Open abhiz10 opened this issue 6 years ago • 12 comments

Hi Team, I need to implement CCPA on my website, I mean in AMP pages and AMP Story Pages, I am attaching two demo file of my implementation, Please can you confirm the implementation are right or not. PFA CCPA_Implementation.zip

abhiz10 avatar Jun 23 '20 08:06 abhiz10

@abhiz10 They look good to me, based up on blocking for eea and preset-us-ca.

micajuine-ho avatar Jun 23 '20 17:06 micajuine-ho

Thanks, @micajuine-ho so I can use custom list list "mylist" in Story HTML, and one div using the same id in as I mentioned in AMPHtml ?

abhiz10 avatar Jun 24 '20 08:06 abhiz10

@abhiz10 The amp-consent integration with amp-geo works across stories and amphtml.

micajuine-ho avatar Jun 24 '20 19:06 micajuine-ho

Actually What I meant to ask, that In AMP HTML: I am using the same ["promptUI":"consentDialog"] for both "eea" and "usca" is that ok to use the same "promptUI" Id for both? As I'm using only one "div id="consentDialog"" block to show the same message for both "eea" and "usca" AMP Geo: AMP-Consent: ....

abhiz10 avatar Jun 24 '20 20:06 abhiz10

And, while in AMP Stories also I'm using only one div in consent, but create my custom array: "mylist" in amp-geo and in consent is mentioned "promptIfUnknownForGeoGroup": "mylist". AMP-Geo:

AMP-Consent:

abhiz10 avatar Jun 24 '20 20:06 abhiz10

Actually there is an issue what I'm facing with AMP-Stories that I can't use this script in AMP-Stories format its show me error in console: error.js:204 Cannot convert undefined or null to object

abhiz10 avatar Jun 24 '20 20:06 abhiz10

Story_AMPConsent_CCPA_Error.zip In this, I had used this script Showing me error in console: error.js:204 Cannot convert undefined or null to object

abhiz10 avatar Jun 24 '20 20:06 abhiz10

@micajuine-ho Can you check all the implementation once regarding my concerns, please, it would be a great help

abhiz10 avatar Jun 24 '20 21:06 abhiz10

I am using the same ["promptUI":"consentDialog"] for both "eea" and "usca" is that ok to use the same "promptUI" Id for both?

Yes that is fine.

Can you check all the implementation once regarding my concerns, please, it would be a great help

The script for the amp-consent should include a 'consents' object (required for amp-consent-story):

{
  "consentInstanceId": "world-wide-consent",
  "consents": {
    "world-wide-consent": {}
  },
  "consentRequired": false,
  "geoOverride": {
    "eea": {
      "promptUI": "consentDialog",
      "consentRequired": true
    },
    "usca": {
      "consentRequired": true,
      "promptUI": "consentDialog"
    }
  }
}

micajuine-ho avatar Jun 25 '20 18:06 micajuine-ho

@micajuine-ho thank you so much

abhiz10 avatar Jun 25 '20 23:06 abhiz10

@abhiz10 FYI this is actually a bug, and it is on my radar to fix. There should be no changes necessary on your end.

micajuine-ho avatar Jun 26 '20 01:06 micajuine-ho

@micajuine-ho Ok, Thanks

abhiz10 avatar Jun 26 '20 04:06 abhiz10