Disable all google tracking per default
This commit is contained in:
parent
a583d8fa1e
commit
38d4fdcdda
5 changed files with 13 additions and 15 deletions
|
@ -9,6 +9,9 @@ class Application_Common_GoogleAnalytics
|
|||
public static function generateGoogleTagManagerDataLayerJavaScript()
|
||||
{
|
||||
$code = "";
|
||||
if (LIBRETIME_ENABLE_GOOGLE_ANALYTICS !== true) {
|
||||
return $code;
|
||||
}
|
||||
|
||||
try {
|
||||
$clientId = Application_Model_Preference::GetClientId();
|
||||
|
@ -55,6 +58,11 @@ class Application_Common_GoogleAnalytics
|
|||
/** Generate the JavaScript snippet that logs a trial to paid conversion */
|
||||
public static function generateConversionTrackingJavaScript()
|
||||
{
|
||||
$code = "";
|
||||
if (LIBRETIME_ENABLE_GOOGLE_ANALYTICS !== true) {
|
||||
return $code;
|
||||
}
|
||||
|
||||
$newPlan = Application_Model_Preference::GetPlanLevel();
|
||||
$oldPlan = Application_Model_Preference::GetOldPlanLevel();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue