1.0.2 • Published 2 years ago
aaomega v1.0.2
Example
app.mpx<script> // 在app中不管使不使用,都必须要在app.mpx中先引入Omega import Omega from 'omega'; // app.js App({ onLaunch: function () { Omega.setConfig({ appId: 'wx7292c1899397867c', uniqueId: 'XXXXXXXXXXXXXXXX' }); // Your code ... } }); </script>
page.mpx
<script> import Omega from 'omega'; Page({ onLoad: function () { Omega.trackEvent('eventid', 'eventlabel', { /* attrs... */ }); // Your code ... } }) </script>