Home Forums Xi Theme Discussion & Support Adding Google Analytics code into XI?

This topic is: not a support question

This topic contains 1 reply, has 2 voices, and was last updated by  themeweaver 10 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1196

    Fishers Church
    Post count: 2

    Can Tim or any of the other XI theme users tell me where or how to insert Google Analytics code . Other themes from StudioPress or Thesis make this obvious, but they don’t have XI’s HTML5 magic.
    Hope you can help soon! Jerry from Fishers Church


    Post count: 730

    I assume you are wanting to add code to the head tag of your site.

    You can use a plugin like http://wordpress.org/extend/plugins/add-to-header/ or this one http://wordpress.org/extend/plugins/analytics-head/

    That way it doesn’t matter which theme you are using, your google analytics stays intact.

    Or you can add stuff to the head tag with some php using a standard wordpress call in functions.php.

    Something like:

    function yourheadfunction(){
    echo ‘…….alll the stuff you need
    add_action(‘wp_head’, ‘yourheadfunction’);

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.