The example implementation covers the following:
- How to build the rule in the Zephr Admin Console
- How to test the rule
- How to augment your decision data
We refer to the following HTML page in the example:
Note: You might need to change the version used in the example page to match the latest version number.
<HTML> <head> <script src="https://assets.zephr.com/zephr-browser/1.3.11/zephr-browser.umd.js"></script> <script> let baseUrl = 'https://v4-demo-chris-my-site.cdn.demo.zephr.com'; document.addEventListener('DOMContentLoaded', (event) => { zephrBrowser.run(baseUrl); }); </script> </head> <body> <h1>Zephr JS test</h1> <div class="private"> Don't look here! </div> </body> </html>