microsoft / ApplicationInsights-WordPress

Main development repository for Application Insights WordPress plugin.
MIT License
45 stars 42 forks source link

Regex not working on a client instrumentation Page name #12

Closed cedrox closed 6 years ago

cedrox commented 6 years ago

Hello Plugin bug on tracking title on certain page :

image

I don't know if this is this statement

or more complexe regex trouble but it raise on error like that : Uncaught SyntaxError: missing ) after argument list

Page name pattern on \wp-content\plugins\application-insights\src\Client_Instrumentation.php $patterns[1] = '/PAGE_NAME/'; if (is_home() == false) { $replacements[1] = get_the_title(); } else { $replacements[1] = 'Home'; }

SergeyKanzhelev commented 6 years ago

closed via #14. I'll release it on wordpress soon