hiding Open tracking - Exclude crawlers *

dreyerretief

New Member
Hi,

Is there a way to hide this option from campaigns? I could hide it on the custom theme we created but just making sure there is no way of doing it from the back end.

1707994345610.png
Thank you
 
Hello,
Maybe only using some css rules. In that view there is a hook that you might use it by creating a file called init-custom.php in your apps folder having the following content:

Code:
<?php

hooks()->addAction('campaign_form_setup_step_before_campaign_tracking_options', function (array $params)
{
$controller    = $params['controller'];
$form          = $params['form'];
$campaign      = $params['campaign'];
$allowedRoutes = ['campaigns/setup'];
    
if (in_array(controller()->getRoute(), $allowedRoutes)) {
clientScript()->registerCssFile(apps()->getBaseUrl('assets/css/campaigns-setup-tracking.css'));
    }
});
 
Hello,
Maybe only using some css rules. In that view there is a hook that you might use it by creating a file called init-custom.php in your apps folder having the following content:

Code:
<?php

hooks()->addAction('campaign_form_setup_step_before_campaign_tracking_options', function (array $params)
{
$controller    = $params['controller'];
$form          = $params['form'];
$campaign      = $params['campaign'];
$allowedRoutes = ['campaigns/setup'];
   
if (in_array(controller()->getRoute(), $allowedRoutes)) {
clientScript()->registerCssFile(apps()->getBaseUrl('assets/css/campaigns-setup-tracking.css'));
    }
});
Yes I have already got the code for hiding it just making sure its not something I can control per group from the back end.
 
Back
Top