Solutions
MomentPerks
Integrating MomentPerks
9 min
overview momentperks lets you deliver personalized offers at the most relevant moments in the user journey, like after a purchase, during a content unlock, or when a milestone is achieved you can integrate momentperks into your online store, website, mobile app, or other digital experiences this guide walks you through the available integration methods and helps you choose the best approach based on your platform, customization needs, and development resources integration methods momentscience offers two primary ways to integrate momentperks 1\ javascript sdk (recommended for websites) use this method for a quick, low code integration copy the javascript snippet from the momentscience dashboard paste it into the \<head> of the page where offers should appear, such as a checkout confirmation or reward screen customize the appearance using the momentperks theme editor in the dashboard this option is ideal if you want to get up and running with minimal development effort 2\ momentperks api ( post /native/v2/offers json ) use the api if you need complete control over offer rendering, layout, and integration logic retrieve offer data in json from the api render offers in your own ui for maximum flexibility integrate with custom web apps, native mobile apps, or embedded experiences this option is recommended for teams that require deep customization or are integrating into platforms outside of traditional web environments platform specific playbooks we also provide integration playbooks tailored for mobile apps and hybrid environments, including a moments prefetch integration the moments prefetch integration lets your app or website load offers in advance so theyβre ready to display instantly when users reach the relevant screen benefits of prefetching reduces offer load times ensures smoother user experiences works with both sdk and api integrations available prefetch playbooks react native moments prefetch integration guide docid\ eysg5wyp3 1h0ymaqsm7t android β moments prefetch integration guide docid\ sz0wfgz70f2psrctff45f swift β moments prefetch integration guide docid\ byz8lqfmujbtn3hgrwj36 flutter β moments prefetch integration guide docid\ wnvdwxu9tpzxzqbxsr74i b serving momentperks in mobile apps (using the moments api) this set of playbooks provides a high level guide for implementing momentperks in mobile apps using the momentscience moments api available mobile playbooks react native moments api integration guide docid\ yimpctt6vt6wtnwmp ybz kotlin moments api integration guide docid\ bttdlbyfhoikooqd9em01 swift moments api integration guide docid 6d5ibwy5ckyh5k4aubhg flutter moments api integration guide docid\ onsca nll3y 5ow2r1r9e if you're unsure which method is right for you or need help getting started, contact our team at help\@momentscience com our team is happy to guide your implementation