How to install Google Analytics

  • TommyK

    #3338

    I’ve found the code but it says I need to replace UA-XXXXX-X with your web property ID.

    I can’t find any advice anywhere on how I find out my web property ID. Can you help?

    Thanks very much

    Prasanna SP

    #24400

    Moved to support. Please post in the correct section next time.

    Prasanna SP

    #24401

    After logging in to Google Analytics dashboard, you can see some numbers like UA-12345678-9 next to your account name. That is your web priority ID. Replace “UA-XXXXX-X” with that code in this script and add the entire code in Graphene Options –> Google Analytics Options (First check Enable Google Analytics tracking)

    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-XXXXX-X']);
    _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>

    TommyK

    #24402

    Thank you.

    I didn’t realise that I also needed to go and set up a Google Analytics account first.

    Prasanna SP

    #24403

    Ha.. ha.. If you don’t setup a Google Analytics account, how can you track the visitors? 🙂

    TommyK

    #24404

    Mate, I’ve never done anything like this before and seeing as “Jetpack” is part of the dashboard and so are various other plug ins….I just assumed some kind of Google analytics tool would appear in the dashboard.

    Prasanna SP

    #24405

    They will, if and only if you enter Google Analytics API key or give them access to your GA account through Auth.

    John McCubbin

    #24406

    thats a bit rude laughing at him if that is laughing i apalogize in advance if its not

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

You must be logged in to reply to this topic.