Track collectible events in MixPanel [#4799]

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2018-06-19 17:53:58 +03:00
parent f74212d9cf
commit 3fc35a437d
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
5 changed files with 15 additions and 3 deletions

View File

@ -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)}])}]])

View File

@ -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}])}]])

View File

@ -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)}])}]])

View File

@ -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]}))

View File

@ -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"