Add tracking to purchase membership link

This commit is contained in:
nikolark committed 2017-08-09 02:03:38 +02:00
1 parent 9e29183170
commit e17d2d8665
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -1,2 +1,3 @@
EVENT_API_URL=https://studentersamfundet.no
DUSKEN_API_URL=https://galtinn.neuf.no
DUSKEN_API_URL=https://galtinn.neuf.no
DUSKEN_PURCHASE_URL=https://galtinn.neuf.no/?utm_source=purchase-button&utm_medium=app
+2 -2
View File
@@ -1,6 +1,7 @@
import React, {Component} from 'react';
import {ScrollView, Text, View, Linking, StyleSheet, Platform} from "react-native";
import {Button, Text as NBText} from "native-base";
import Config from 'react-native-config';
export default class Membership extends Component {
render() {
@@ -30,8 +31,7 @@ export default class Membership extends Component {
};
onPurchasePress() {
// FIXME: Move this to .env as DUSKEN_URL
Linking.openURL('https://galtinn.neuf.no');
Linking.openURL(Config.DUSKEN_PURCHASE_URL);
};
onLoginPress = () => {