Google Analitics not working with the theme

Discussion in 'Figero WordPress Theme' started by onlineunlocks, Jun 21, 2013.

Thread Status:
Not open for further replies.
  1. onlineunlocks

    onlineunlocks New Member

    Joined:
    Jun 20, 2013
    Messages:
    17
    Likes Received:
    0
    The tracking code is not detected by google analitics ,even if shows in the page source,are not detected by google,gives me "Status: Tracking Not Installed".This problem and the other one with "personalization options" also had in the lite version and seem in the pro version are also
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
  3. onlineunlocks

    onlineunlocks New Member

    Joined:
    Jun 20, 2013
    Messages:
    17
    Likes Received:
    0
    That did not worked either,but this worked,so will post maybe can help others to:
    This was the normal code received from Google analytics:
    <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', 'Tracking code', 'website name');
    ga('send', 'pageview');

    </script>

    And I used this and worked:
    <script type="text/javascript">
    //<![CDATA[
    var _gaq = _gaq || [];

    _gaq.push(['_setAccount', 'Tracking code']);
    _gaq.push(['_trackPageview']);

    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

    //]]>
    </script>
     
Thread Status:
Not open for further replies.

Share This Page