• Resolved icakeov

    (@itucakov)


    Hi Chouby
    Thanks for the great plugin, I’m just getting started with it.
    I was wondering if you know what the process is to add google analytics tracking to separate language parts of the website?
    Is there a place to put the google analytics tracking code and track it separately? Or do I need to have a multi-site to do this? I would ideally love to continue with polylang.
    Thanks for feedback
    Ivan

    http://wordpress.org/plugins/polylang/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    I guess you place your tracking code in the footer.php of your (child) theme. So in this file, you just have to test which language is loaded:

    if ('en_US' == get_locale()) {
    // tracking code for English
    }
    else {
    // tracking code for another language
    }

    Thread Starter icakeov

    (@itucakov)

    perfect, thanks Chouby.

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

The topic ‘Tracking google analytics?’ is closed to new replies.