NikolayBezay

Sodastream prepare product data for dyncamic Campaign.

May 17th, 2022 (edited)
206
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. (function() {
  3.     try {
  4.         const dataSourceUrl = 'https://feeds.datafeedwatch.com/64183/52bb0f7cc9cb9bbc6e9589624d3e5fb5c5465ed7.json';
  5.         fetch(dataSourceUrl)
  6.         .then(res => res.json())
  7.         .then(json => {
  8.             if (json && json.products && json.products.length > 0) {
  9.                window.localStorage.setItem('upsell_Vertical_Carousel', JSON.stringify(json));
  10.             }
  11.         });
  12.     } catch(requestError) {
  13.         console.log(requestError);
  14.     }
  15. })();
  16. </script>
RAW Paste Data Copied