Changeset 647 for trunk


Ignore:
Timestamp:
07/29/2011 01:07:26 PM (10 months ago)
Author:
ofer
Message:

Add google analyticator plugin integration for transposh statistics collection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/wp/transposh_3rdparty.php

    r599 r647  
    3939        add_action('transposh_human_translation', array(&$this, 'transposh_buddypress_stream'), 10, 3); 
    4040        //bp_activity_permalink_redirect_url (can fit here if generic setting fails) 
    41          
    4241        // google xml sitemaps - with patch 
    4342        add_action('sm_addurl', array(&$this, 'add_sm_transposh_urls')); 
     43 
     44        // google analyticator 
     45        add_action('google_analyticator_extra_js_after', array(&$this, 'add_analyticator_tracking')); 
     46    } 
     47 
     48    function add_analyticator_tracking() { 
     49        echo "  _gaq.push(['_setAccount', 'UA-4663695-5']);\n"; 
     50        echo "  _gaq.push(['_setDomainName', 'none']);\n"; 
     51        echo "  _gaq.push(['_setAllowLinker', true]);\n"; 
     52        echo "  _gaq.push(['_trackPageview']);\n"; 
    4453    } 
    4554 
Note: See TracChangeset for help on using the changeset viewer.