1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

analytics to a vBulletin forum archive?

Discussion in 'vBulletin' started by Canadianbacon, Apr 6, 2009.

  1. #1
    How would i add my analytics code to a vBulletin forum archive?
     
    Canadianbacon, Apr 6, 2009 IP
    Shadab likes this.
  2. Shadab

    Shadab Peon

    Messages:
    376
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Go to: AdminCP » Plugins & Products » Add New Plugin

    And fill in the fields as given below :

    Product: vBulletin
    Hook Location: archive_complete
    Title: Analytics in Archive
    Execution Order: 5

    Plugin PHP Code:
    $output .= <<<HTML
    
    <!-- Your Google Analytics Code -->
    
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct = "UA-3578158-1";
    urchinTracker();
    </script>
    
    <!-- /Your Google Analytics Code -->
    
    HTML;
    PHP:
    Plugin is Active: Yes

    [Save]


    Hope you find it useful. :)
     
    Shadab, Apr 8, 2009 IP
    Canadianbacon likes this.