Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Google Analytics for Web Traffic Monitoring #2

Open
arya-oss opened this issue Mar 23, 2016 · 5 comments
Open

Add Google Analytics for Web Traffic Monitoring #2

arya-oss opened this issue Mar 23, 2016 · 5 comments

Comments

@arya-oss
Copy link
Member

No description provided.

@sudheesh001
Copy link
Member

@rajmani1995 Place this script inside the head section or as a file called ga.js and include it in the required files.

    <script type="text/javascript">
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-XXXXXXXX-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>

Replace the XXXXXXX with the actual tracking key

@arya-oss
Copy link
Member Author

@psurya1994 can you add a new tracking code for gameautomators.com on Google analytic with
your google account. Tracking Code format is UA-XXXXXXXX-X
Reply this tracking code.

@psurya1994
Copy link
Member

@rajmani1995 use this tracking code: UA-74194055-1

@arya-oss
Copy link
Member Author

@sudheesh001 @psurya1994 verify development branch to merge in master branch

  • Added analytics
  • Added json data for games and contributors
  • Games and contributors is rendered in index.html

@sudheesh001
Copy link
Member

@rajmani1995 Checked and left comments on development branch. From the next time, send a pull request for sure so that the comments can be tracked more easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants