Announcement

Collapse
No announcement yet.

Google Analytics vB4

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Google Analytics vB4

    Code:
    <vb:literal>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">\>
    try {
    var pageTracker = _gat._getTracker("****");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    </vb:literal>
    I know I need to enter this much... And I know I need to put it in ad_footer_end template so that I wont have to worry about when there are upgrades... But where is that, and how do I put it in there!? haha

    Thanks,
    Fennell

  • #2
    Mine is in the "footer" template but I can see some logic to putting it in the ad_footer_end template instead. Maybe I'll move mine. This is how to do it.

    Admincp >> Styles & Templates >> Style Manager >> Click the Expand button with << >> Then double click "footer" (Or any template)

    Scroll to the bottom of that footer template and place your code here. The ad_footer_end template is blank I think so even easier.
    Code:
     
    <div id="footer_morecopyright" class="shade footer_morecopyright">
     <!-- Do not remove cronimage or your scheduled tasks will cease to function -->
     {vb:raw cronimage}
     <!-- Do not remove cronimage or your scheduled tasks will cease to function -->
     {vb:raw vboptions.copyrighttext}
    </div>
    <vb:literal>
    YOUR GOOGLE CODE HERE
    </vb:literal>
    {vb:raw ad_location.ad_footer_end} 
    </div>
    DCX000
    Senior Member
    Last edited by DCX000; Sun 7 Feb '10, 10:40pm.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X