Track collectible events in MixPanel [#4799]
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
f74212d9cf
commit
3fc35a437d
|
@ -24,5 +24,5 @@
|
||||||
:icon :icons/address
|
:icon :icons/address
|
||||||
:icon-opts {:color colors/blue}
|
:icon-opts {:color colors/blue}
|
||||||
:accessibility-label :open-collectible-button
|
:accessibility-label :open-collectible-button
|
||||||
:on-press #(re-frame/dispatch [:open-browser
|
:on-press #(re-frame/dispatch [:open-collectible-in-browser
|
||||||
{:url (str "https://www.cryptokitties.co/kitty/" id)}])}]])
|
{:url (str "https://www.cryptokitties.co/kitty/" id)}])}]])
|
|
@ -24,4 +24,4 @@
|
||||||
:icon :icons/address
|
:icon :icons/address
|
||||||
:icon-opts {:color colors/blue}
|
:icon-opts {:color colors/blue}
|
||||||
:accessibility-label :open-collectible-button
|
:accessibility-label :open-collectible-button
|
||||||
:on-press #(re-frame/dispatch [:open-browser {:url external_url}])}]])
|
:on-press #(re-frame/dispatch [:open-collectible-in-browser {:url external_url}])}]])
|
||||||
|
|
|
@ -23,5 +23,5 @@
|
||||||
:icon :icons/address
|
:icon :icons/address
|
||||||
:icon-opts {:color colors/blue}
|
:icon-opts {:color colors/blue}
|
||||||
:accessibility-label :open-collectible-button
|
:accessibility-label :open-collectible-button
|
||||||
:on-press #(re-frame/dispatch [:open-browser
|
:on-press #(re-frame/dispatch [:open-collectible-in-browser
|
||||||
{:url (str "https://www.etheremon.com/#/mons/" class_id)}])}]])
|
{:url (str "https://www.etheremon.com/#/mons/" class_id)}])}]])
|
||||||
|
|
|
@ -58,3 +58,9 @@
|
||||||
[re-frame/trim-v]
|
[re-frame/trim-v]
|
||||||
(fn [{db :db} [_]]
|
(fn [{db :db} [_]]
|
||||||
{:db db}))
|
{:db db}))
|
||||||
|
|
||||||
|
(handlers/register-handler-fx
|
||||||
|
:open-collectible-in-browser
|
||||||
|
[re-frame/trim-v]
|
||||||
|
(fn [_ [data]]
|
||||||
|
{:dispatch [:open-browser data]}))
|
|
@ -146,6 +146,12 @@
|
||||||
{:label "Tap"
|
{:label "Tap"
|
||||||
:trigger [:send-transaction-message]
|
:trigger [:send-transaction-message]
|
||||||
:properties {:target :wallet-transaction-sent}}
|
:properties {:target :wallet-transaction-sent}}
|
||||||
|
{:label "Tap"
|
||||||
|
:trigger [:navigate-to :collectibles-list]
|
||||||
|
:properties {:target :collectibles-list}}
|
||||||
|
{:label "Tap"
|
||||||
|
:trigger [:open-collectible-in-browser]
|
||||||
|
:properties {:target :open-collectible-in-browser}}
|
||||||
|
|
||||||
;;Profile
|
;;Profile
|
||||||
{:label "Tap"
|
{:label "Tap"
|
||||||
|
|
Loading…
Reference in New Issue