v0.1

MarketingJSON
#70 - Hide Old/Seen CMS Items
Only show CMS items which are new to a particular member. If they've seen it, hide it.
Create a localstorage object containing the logged in Member JSON on page load
Watch the video for step-by-step implementation instructions
<!-- 💙 MEMBERSCRIPT #3 v0.1 💙 SAVE JSON TO LOCALSTORAGE ON PAGE LOAD -->
<script>
document.addEventListener("DOMContentLoaded", async function() {
 const memberstack = window.$memberstackDom;
Â
 // Retrieve the current member JSON data
 const member = await memberstack.getMemberJSON();
 // Save the member JSON as a local storage item
 localStorage.setItem("memberJSON", JSON.stringify(member));
});
</script>More scripts in JSON