7921c3e5ba
* record a tracks event when merchant toggles cart shipping calculator: - add tracks utility func for blocks - adds standard event name prefix - supplies post id & type params (an example) - hook this up to UI when user toggles shipping calc - pass enabled as boolean prop * fix typo - call isTracksAvailable() ! * remove unnecessary temporary boolean * update event name based on best practice guidelines * remove isTracksAvailable preflight check: - if site opts out, recordEvent is an empty function - add in standard fallback boilerplate to ensure function exists Note: currently no mechanism to detect if tracks is available on front end. |
||
---|---|---|
.. | ||
empty-cart | ||
full-cart | ||
attributes.js | ||
edit.js | ||
editor.scss | ||
example.js | ||
frontend.js | ||
index.js | ||
style.scss |