SkizNet/mediawiki-GTag

Support new GTag G-XXX code

Closed this issue · 1 comments

Hello,

I had to change the line
if ( $gaId === '' || !preg_match( '/^UA-[0-9]+-[0-9]+$/', $gaId ) ) {
to
if ( $gaId === '' || !preg_match( '/^G-[0-9A-Z]+$/', $gaId ) ) {

in file GTagHook.php in order to make it work with a GTag code.

Thank for your extension.

Best regards,

Thanks, looks like the G-XXXXXX form is for App+Web properties; I'll get support added for that id format as well shortly! I do still need the UA-XXXXXX-X format as well, since that id format is still used for Web-only properties.