Don't fire conversion tracking for the sourcefabric_admin user
This commit is contained in:
parent
084c6dd662
commit
bc2acaea51
|
@ -77,7 +77,9 @@ class Application_Common_GoogleAnalytics
|
||||||
|
|
||||||
$oldPlan = Application_Model_Preference::GetOldPlanLevel();
|
$oldPlan = Application_Model_Preference::GetOldPlanLevel();
|
||||||
|
|
||||||
if ($user->isSuperAdmin() && $request->getControllerKey() !== "thank-you")
|
if ($user->isSuperAdmin() &&
|
||||||
|
!$user->isSourcefabricAdmin() &&
|
||||||
|
$request->getControllerKey() !== "thank-you")
|
||||||
{
|
{
|
||||||
//Only tracking trial->paid conversions for now.
|
//Only tracking trial->paid conversions for now.
|
||||||
if ($oldPlan == "trial")
|
if ($oldPlan == "trial")
|
||||||
|
|
|
@ -69,6 +69,15 @@ class Application_Model_User
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isSourcefabricAdmin()
|
||||||
|
{
|
||||||
|
$username = $this->getLogin();
|
||||||
|
if ($username == "sourcefabric_admin") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO : refactor code to only accept arrays for isUserType and
|
// TODO : refactor code to only accept arrays for isUserType and
|
||||||
// simplify code even further
|
// simplify code even further
|
||||||
public function isUserType($type)
|
public function isUserType($type)
|
||||||
|
|
Loading…
Reference in New Issue