diff options
author | 2019-08-21 09:39:39 +0200 | |
---|---|---|
committer | 2019-08-21 09:39:39 +0200 | |
commit | c4768a221f93d534f4d0454414cdf073af8a2356 (patch) | |
tree | 77fdf9eb3cbfa72c8fe40e45c88af61299004609 /src/features/shareFranz | |
parent | Update dev-app-update.yml (diff) | |
download | ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.tar.gz ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.tar.zst ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.zip |
Remove analytics
Diffstat (limited to 'src/features/shareFranz')
-rw-r--r-- | src/features/shareFranz/Component.js | 10 | ||||
-rw-r--r-- | src/features/shareFranz/index.js | 4 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/features/shareFranz/Component.js b/src/features/shareFranz/Component.js index 8d1d595c5..320951f0d 100644 --- a/src/features/shareFranz/Component.js +++ b/src/features/shareFranz/Component.js | |||
@@ -8,7 +8,6 @@ import { H1, Icon } from '@meetfranz/ui'; | |||
8 | 8 | ||
9 | import Modal from '../../components/ui/Modal'; | 9 | import Modal from '../../components/ui/Modal'; |
10 | import { state } from '.'; | 10 | import { state } from '.'; |
11 | import { gaEvent } from '../../lib/analytics'; | ||
12 | import ServicesStore from '../../stores/ServicesStore'; | 11 | import ServicesStore from '../../stores/ServicesStore'; |
13 | 12 | ||
14 | const messages = defineMessages({ | 13 | const messages = defineMessages({ |
@@ -129,9 +128,6 @@ export default @injectSheet(styles) @inject('stores') @observer class ShareFranz | |||
129 | icon="mdiEmail" | 128 | icon="mdiEmail" |
130 | href={`mailto:?subject=Meet the cool app Franz&body=${intl.formatMessage(messages.shareTextEmail, { count: serviceCount })}}`} | 129 | href={`mailto:?subject=Meet the cool app Franz&body=${intl.formatMessage(messages.shareTextEmail, { count: serviceCount })}}`} |
131 | target="_blank" | 130 | target="_blank" |
132 | onClick={() => { | ||
133 | gaEvent('Share Franz', 'share', 'Share via email'); | ||
134 | }} | ||
135 | /> | 131 | /> |
136 | <Button | 132 | <Button |
137 | label={intl.formatMessage(messages.actionsFacebook)} | 133 | label={intl.formatMessage(messages.actionsFacebook)} |
@@ -139,9 +135,6 @@ export default @injectSheet(styles) @inject('stores') @observer class ShareFranz | |||
139 | icon="mdiFacebookBox" | 135 | icon="mdiFacebookBox" |
140 | href="https://www.facebook.com/sharer/sharer.php?u=https://www.meetfranz.com?utm_source=facebook&utm_medium=referral&utm_campaign=share-button" | 136 | href="https://www.facebook.com/sharer/sharer.php?u=https://www.meetfranz.com?utm_source=facebook&utm_medium=referral&utm_campaign=share-button" |
141 | target="_blank" | 137 | target="_blank" |
142 | onClick={() => { | ||
143 | gaEvent('Share Franz', 'share', 'Share via Facebook'); | ||
144 | }} | ||
145 | /> | 138 | /> |
146 | <Button | 139 | <Button |
147 | label={intl.formatMessage(messages.actionsTwitter)} | 140 | label={intl.formatMessage(messages.actionsTwitter)} |
@@ -149,9 +142,6 @@ export default @injectSheet(styles) @inject('stores') @observer class ShareFranz | |||
149 | icon="mdiTwitter" | 142 | icon="mdiTwitter" |
150 | href={`http://twitter.com/intent/tweet?status=${intl.formatMessage(messages.shareTextTwitter, { count: serviceCount })}`} | 143 | href={`http://twitter.com/intent/tweet?status=${intl.formatMessage(messages.shareTextTwitter, { count: serviceCount })}`} |
151 | target="_blank" | 144 | target="_blank" |
152 | onClick={() => { | ||
153 | gaEvent('Share Franz', 'share', 'Share via Twitter'); | ||
154 | }} | ||
155 | /> | 145 | /> |
156 | </div> | 146 | </div> |
157 | </Modal> | 147 | </Modal> |
diff --git a/src/features/shareFranz/index.js b/src/features/shareFranz/index.js index 87deacef4..41da57dd6 100644 --- a/src/features/shareFranz/index.js +++ b/src/features/shareFranz/index.js | |||
@@ -2,7 +2,6 @@ import { observable, reaction } from 'mobx'; | |||
2 | import ms from 'ms'; | 2 | import ms from 'ms'; |
3 | 3 | ||
4 | import { state as delayAppState } from '../delayApp'; | 4 | import { state as delayAppState } from '../delayApp'; |
5 | import { gaEvent, gaPage } from '../../lib/analytics'; | ||
6 | 5 | ||
7 | export { default as Component } from './Component'; | 6 | export { default as Component } from './Component'; |
8 | 7 | ||
@@ -26,9 +25,6 @@ export default function initialize(stores) { | |||
26 | debug('Showing share window'); | 25 | debug('Showing share window'); |
27 | 26 | ||
28 | state.isModalVisible = true; | 27 | state.isModalVisible = true; |
29 | |||
30 | gaEvent('Share Franz', 'show'); | ||
31 | gaPage('/share-modal'); | ||
32 | } | 28 | } |
33 | 29 | ||
34 | reaction( | 30 | reaction( |