I remember the day when I was asked to develop my first Magento extension. I was scared as I knew what a beast Magento was and that developing modules is a challenging task even for very experienced PHP developers. There were no good sources of information back in the day – no books, no detailed tutorials, except for a very basic, Hello World extensions. I mean there were and still are articles where you can understand some basics, also you’re always allowed to view the source of Magento core and well-written community extensions to understand how to write an extension but still there was a gap and a lack of a practical, hands-on guide to building Magento modules from scratch. Then Magento published its own Magento Extension Developer’s Guide and few months ago, in September 2013, Packt Publishing released a new 128 pages book called Getting Started with Magento Extension Development by Branko Ajzele. (more…)
In order to track the results of your store in Google analytics, you need to generate the code following Google instructions.
After you follow the steps from their tutorial, you will get a code that looks like the following:
var _gaq = _gaq || ;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script'); s.parentNode.insertBefore(ga, s);
UA-AAAAA-A is a unique code that was given to your store by Google.
After you generated the code (UA-AAAAA-A), you need to add it on your website. In order to do so, follow a few simple steps.
Log in to your admin panel and navigate directly to Stores => Configuration
Then under Sales, find Google API.
Now click to expand Googla Analytics section, select “Yes” to enable and enter the code (UA-AAAAA-A). Don’t forget to press “Save Config”.