From 41acac169cf71b9912a20ffe336dc685b221d74c Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Sun, 24 Mar 2013 11:41:06 -0700 Subject: Prep work for server-end mixpanel tracking for unsubscribe to prevent a desynch status of 'unsubscribed' --- pages/cp.php | 21 +++++++++++++++++++++ pages/process.php | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/pages/cp.php b/pages/cp.php index d8fa2ba..8ce922e 100644 --- a/pages/cp.php +++ b/pages/cp.php @@ -6,6 +6,24 @@ htmlHeader(); $this->token, + // '$distinct_id' => $distinct_id, + // '$set' => $properties + // ); + // $url = $this->host . 'engage/?verbose=1&data=' . base64_encode(json_encode($params)); + // exec("curl '" . $url . "' >/dev/null 2>&1 &"); + // } +// } + + topbar($Links); if (!$accepted) { @@ -85,6 +103,9 @@ if (isset($_POST['updateSettings']) AND $_POST['updateSettings'] == 'true') { setOptedOutOfEmails($userID, false); $r .= "
You are accepting emails"; $r .= ''; + + //$metrics = new mixpanelTracker($mpToken); + //$metrics->set(10, array('$unsubscribed'=>false)); } DoRedirect($r); exit; diff --git a/pages/process.php b/pages/process.php index 21604de..5591954 100644 --- a/pages/process.php +++ b/pages/process.php @@ -114,7 +114,7 @@ function getTaskUpdate(command) {
- Load Map: + Tasks:
Recalculate all statistics:
-- cgit v1.2.3