public static function embedCampaigns(
        $html,
        $campaign = [],
        $additionalCampaigns = []
    ) {
        $pattern = '/<a(\s[^>]*)href="([^"]*)"([^>]*)>/si';

        $html = preg_replace_callback($pattern, function($matches) use ($campaign, $additionalCampaigns) {
            $href = GoogleCampaignPlugin::replaceLink($matches[2], $campaign, $additionalCampaigns);
            return "<a{$matches[1]}href=\"{$href}\"{$matches[3]}>";
        }, $html);

        return $html;
    }