Dan0sz / host-analytics-locally

Automagically download analytics.js, keep it updated using WordPress' built-in Cron-schedule, generate the tracking code, add it to your site's header or footer and tons of other features!
https://daan.dev/wordpress-plugins/caos/
MIT License
11 stars 5 forks source link

Allow for script attributes manipulation #2

Closed rlankhorst closed 4 years ago

rlankhorst commented 4 years ago

@Dan0sz Deze mag wel weg, ik had een update van de master gedaan, omdat mijn vorige wijziging op een nogal verouderde branche stond. Maar ik zie nu dat git een hele bak commits hiervan heeft gemaakt, dat is niet de bedoeling, er was maar 1 wijziging, in class-tracking.php:

        $scriptAttributes = apply_filters('caos_script_attributes', '');
        echo "<script $snippetType src='$localFileUrl' $scriptAttributes></script>";
Dan0sz commented 4 years ago

I'm closing this PR, since its branch wasn't up to date with master. Also, the feature has been implemented :)