When trying to add Google Analytics in vBulletin 4 to a style, template or plugin the following error message may appear: Parse error: syntax error Two options of “Go Back†or “Continue†are available for selection. If you choose to forcefully save by clicking "Continue" the script doesn’t work. Google Analytics tracking code or script contains some special characters which does not parse properly. Thus, in order to embed Google Analytics tracking code, the easier way is to wrap the code with vb:literal tags so that the code is treated literally during page rendering. For example: <vb:literal> *** GOOGLE ANALYTICS CODE HERE *** </vb:literal> PHP: The Google Analytics tracking code can be placed in footer template, or better suggestion is to place it into ad_footer_end template (inside Ad Location Templates) as to avoid future upgrading issues where templates need to manually merged. Nick
Put the code in the footer ad location - that should fix you up. Also, by putting the code in the ad_footer template, your not messing with the core template files.