Andy Huang
Well-known member
My analytics account is getting huge, and I should really make more, but in the mean time, my analytics UA code ends in double digits. The default XenForo installation checks for UA-XXXXXX-Y instead of -YY, and this causes a problem. To resolve this for the current beta build (future versions will have this sorted), you will need to modify a file.
Open /library/XenForo/DataWriter/Helper/Option.php
Find:
Replace with:
Kier mentioned that he fixed it as we chatted on Skype already, so I've already appended the Fixed tag in the thread title.
Open /library/XenForo/DataWriter/Helper/Option.php
Find:
Code:
if ($wpId !== '' && !preg_match('/^UA-\d+-\d$/', $wpId))
Replace with:
Code:
if ($wpId !== '' && !preg_match('/^UA-\d+-\d+$/', $wpId))
Kier mentioned that he fixed it as we chatted on Skype already, so I've already appended the Fixed tag in the thread title.