Restrict Download of campaign statistics

Jof

New Member
Hi,

Hoping someone can help. I'm sharing my campaign statistics with a 3rd party by using the share URL. But I do not want them to able to download the opens and clicks. Namely because of GDPR we do not provide the full email address, but in the downloadable file the IP address, user agent, and other identifiable data can be seen.

Is there a setting to turn off the ability to download the open and click reports from a shared campaign URL?

Thanks,

J.
 
Hello,
For the overview of the report for the Export basic stats there is nothing you can do. But for the other inner exports you can do something like this:
1. Create a file named init-custom.php in your apps folder and add this into it:

PHP:
<?php
hooks()->addFilter('box_header_right_content', function (array $items, Controller $controller) {
    if ($controller->id !== 'campaigns_reports' && !apps()->isAppName('frontend')) {
        return $items;
    }
    foreach ($items as $index => $item) {
        if (strpos($item, 'Export') !== false) {
            unset($items[$index]);
        }
    }
    return $items;
});
 
Back
Top