Skip to content

Commit

Permalink
PHPDoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan0sz committed Jun 27, 2024
1 parent 016c857 commit 5f736ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ public function add_plausible_attributes( $tag, $handle ) {
$domain_name = Helpers::get_domain();

// We need the correct id attribute for IE compatibility.
$tag = preg_replace( "/\sid=(['\"])plausible-analytics-js(['\"])/", " id=$1plausible$2", $tag );
$tag = preg_replace( "/\sid=(['\"])plausible-analytics-js(['\"])/", " id=$1plausible$2", $tag );
/**
* the data-cfasync ensures this script isn't processed by CF Rocket Loader @see https://developers.cloudflare.com/speed/optimization/content/rocket-loader/ignore-javascripts/
*/
$params = "defer data-domain='{$domain_name}' data-api='{$api_url}' data-cfasync='false'";

// Triggered when exclude pages is enabled.
Expand Down

0 comments on commit 5f736ae

Please sign in to comment.