Skip to content

DTSHOPSCE-7414: Remove shopping analytics (store-cash)#194

Merged
yehor-anisimov merged 1 commit intomainfrom
feature/DTSHOPSCE-7414
Dec 23, 2025
Merged

DTSHOPSCE-7414: Remove shopping analytics (store-cash)#194
yehor-anisimov merged 1 commit intomainfrom
feature/DTSHOPSCE-7414

Conversation

@yehor-anisimov
Copy link
Collaborator

@yehor-anisimov yehor-anisimov commented Dec 17, 2025

Purpose of PR

Since store-cash getting deprecated, we should not serve executable code in JS SDK.
All code accessible through public functions has been replaced with noop

Testing on Stage.

Setup

Include this script on any website.

<script>
  (function(a,b,d,c,e){
    a[c]=a[c]||[];
    a[c].push({t:(new Date).getTime(),event:"snippetRun"});
    a=b.getElementsByTagName(d)[0];
    b=b.createElement(d);b.async=!0;
    b.dataset.namespace="paypal_sdk";
    b.src="https://localhost.paypal.com/sdk/js?components\x3dshopping\x26client-id\x3d"+e;a.parentNode.insertBefore(b,a)
  })
  (window,document,"script","shoppingDDL", "alc_client1");
  var pptag={
    send:function(a,b){
      shoppingDDL.push({event:a,payload:b})
    },
    set:function(a){
      shoppingDDL.push({set:a})
    }
  };
  pptag.send("page_view",{page_type:"HOME"});
</script>

Validation

  • Check network request for failures of sdk
  • Check browser console for failures
  • store-cash FPTI events should not be triggered

@codecov
Copy link

codecov bot commented Dec 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.02%. Comparing base (e509e94) to head (8e0bd86).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
- Coverage   61.78%   55.02%   -6.77%     
==========================================
  Files          42       32      -10     
  Lines        1476     1225     -251     
  Branches      310      266      -44     
==========================================
- Hits          912      674     -238     
+ Misses        481      470      -11     
+ Partials       83       81       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yehor-anisimov yehor-anisimov merged commit 11e486d into main Dec 23, 2025
5 of 6 checks passed
@yehor-anisimov yehor-anisimov deleted the feature/DTSHOPSCE-7414 branch December 23, 2025 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants