diff --git a/src/TrackingCodeTags.php b/src/TrackingCodeTags.php index 2b2a078..7181db2 100644 --- a/src/TrackingCodeTags.php +++ b/src/TrackingCodeTags.php @@ -38,6 +38,10 @@ public function createLink(string $tag): string $output = ''; foreach($scripts as $script){ + if (is_array($script)) { + $script = $script['code']; + } + $output .= $script; } $output .= '';