How to integrate Google Analytics into your flasharcade site
I bet you know, Google Analytics is one of the best tools out there for analyzing traffic on your flash arcade website. Once it’s installed, it will give you an enormous amount of information about who is coming to your site, which games your visitors like, what they’re looking for, and from where your traffic is coming from.
Yes, my script contains a built-in stats module, but it has no chance to win competing with the Google’s stats web application. So, if you want to know everything about your players, it’s time to integrate Goggle Analytics on your site.
Step 1: Set Up Your Account
- Go to Google Analytics.
- If you have a Google account, sign in using your email and password, otherwise sign up using their form.
- Once you are signed in, create a new site profile to track its stats.
- Google will provide you with a block of code. Copy this code – you’ll need it to insert into your web site’s template.
Step 2: Insert Google Analytics JavaScript Into Your Pages
Now you should insert the javascript code you’ve got in your google analytics account into your pages. I’d suggest you to insert it in the last lines of html code in the "block_footer.html" – your footer’s template.
- Run your favorite FTP program and connect to your site’s FTP.
- Find the "block_footer.html" file in the "/templates/<your theme>/" folder.
- Download it and open in any text editor, for example in Notepad.
- Insert Analytics code in the end of the file.
- Save the file, close it and upload back to your site.
That’s it, Analytics is installed on your gaming site. Just make sure it’s active – you can check up the status in the site’s settings inside your Google Analytics account.
Proarcade's Twitter
