From 1f4af8a75917e99b758464b8cf026247687b4695 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Thu, 31 Dec 2015 18:03:59 -0500 Subject: [PATCH] move feedback collection onto lbry, improve analytics, add support for analytics event on feedback submit, single reference to reward value --- model/CreditApi.class.php | 5 +++++ view/Response.class.php | 2 +- view/analytics/subFacebook.php | 14 -------------- view/analytics/subTwitter.php | 8 -------- view/get/feedback-prompt.php | 9 +++++++++ view/get/feedback.php | 15 +++++---------- view/layout/basic.php | 14 +++++++++++++- view/mail/joinList.php | 14 +++++++------- view/page/feedback.php | 34 ++++++++++++++++++++++++++++++++++ view/page/join-list.php | 11 +---------- view/social/sidebar.php | 10 ++++++++++ web/js/global.js | 10 +++++++++- web/scss/_form.scss | 5 +++++ 13 files changed, 99 insertions(+), 52 deletions(-) delete mode 100644 view/analytics/subFacebook.php delete mode 100644 view/analytics/subTwitter.php create mode 100644 view/get/feedback-prompt.php create mode 100644 view/page/feedback.php create mode 100644 view/social/sidebar.php diff --git a/model/CreditApi.class.php b/model/CreditApi.class.php index 504c228d..116d646e 100644 --- a/model/CreditApi.class.php +++ b/model/CreditApi.class.php @@ -7,6 +7,11 @@ */ class CreditApi { + public static function getCurrentTestCreditReward() + { + return 1000; + } + public static function getTotalDollarSales() { return 22585; diff --git a/view/Response.class.php b/view/Response.class.php index 70641a5a..4eaf814f 100644 --- a/view/Response.class.php +++ b/view/Response.class.php @@ -80,7 +80,7 @@ class Response public static function addJsAsset($src) { - static::$assets['js'][] = $src; + static::$assets['js'][$src] = $src; } public static function getJsAssets() diff --git a/view/analytics/subFacebook.php b/view/analytics/subFacebook.php deleted file mode 100644 index c14768fc..00000000 --- a/view/analytics/subFacebook.php +++ /dev/null @@ -1,14 +0,0 @@ - - - - \ No newline at end of file diff --git a/view/analytics/subTwitter.php b/view/analytics/subTwitter.php deleted file mode 100644 index b35fb054..00000000 --- a/view/analytics/subTwitter.php +++ /dev/null @@ -1,8 +0,0 @@ - - - twttr.conversion.trackPid('nty1x', { tw_sale_amount: 0, tw_order_quantity: 0 }); - - \ No newline at end of file diff --git a/view/get/feedback-prompt.php b/view/get/feedback-prompt.php new file mode 100644 index 00000000..6bf8cc23 --- /dev/null +++ b/view/get/feedback-prompt.php @@ -0,0 +1,9 @@ + +

+ Regardless of whether you got LBRY to run or not, your feedback is immensely valuable. + Everyone who made any effort to install and complete the survey below will receive *. +

+
+ *What is this worth? Who knows! But it will be the largest reward we will ever offer to early adopters. +
+ diff --git a/view/get/feedback.php b/view/get/feedback.php index ed87e57c..a825411b 100644 --- a/view/get/feedback.php +++ b/view/get/feedback.php @@ -1,12 +1,7 @@ +

Test and Earn

-

- Regardless of whether you got LBRY to run or not, your feedback is immensely valuable. - Everyone who made any effort to install and complete the survey below will receive 1,000 LBC*. -

-
- *What is this worth? Who knows! But it will be the largest reward we will ever offer to early adopters. Alternatively, if you complete our survey we will pay you in hugs. -
+

Test Your Install

  1. Run lbrynet-console from the command line
  2. @@ -15,8 +10,8 @@

Feedback

- Everyone who completes our brief feedback survey will receive 1,000 LBC and your feedback will be personally read by the developers. - Completing this survey also helps signal interest in LBRY to investors. + In addition to , your feedback will be personally read by the developers and help signal + interest in LBRY to investors.

- Provide Your Feedback + Provide Your Feedback
\ No newline at end of file diff --git a/view/layout/basic.php b/view/layout/basic.php index ef684273..79ba3626 100644 --- a/view/layout/basic.php +++ b/view/layout/basic.php @@ -52,6 +52,7 @@