PDA

View Full Version : Google analytics code in headinclude, but where?


sunseeker1988
03-28-2011, 04:09 PM
Hi, I was wondering where in the headincludes section in vbulletin do I put the google analytic code? the bottom of the page, or dose it matter where in the headinclude section in templates I include the code at?

thanks for any help.

Lynne
03-28-2011, 04:50 PM
Put it at the bottom of the footer template.

sunseeker1988
03-29-2011, 03:59 AM
i heard in vb 4.0 you should include it in the headincludes. I also heard that including it in the footer, you should ad <vb:literal> because "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> and </vb:literal> tags so that the code is treated literally during page rendering."

--------------- Added 1301409180 at 1301409180 ---------------

I also was wondering, since I inserted it in the headincludes part, will that track ALL pages on my forum?

Lynne
03-29-2011, 04:34 PM
Since the headinclude template is included on all pages, then your GA will be included on all pages.