Strategic Growth and Marketing Blog
Yoast Google Analytics Reassign ‘__gaTracker’ Tracker to ‘ga’ Variable
Google Analytics by Yoast is a must have plugin for all WordPress installs. It makes adding GA trackers a breeze and it can also ping certain events to Google Analytics.…
Magento – Reset File and Folder Permissions
You might have come across the following error while in Magento Connect Manager – Warning: Your Magento folder does not have sufficient write permissions. Magento needs certain file and folder…
Magento – Get CMS Static Block Model Data (Title, Status, Content)
You can store template and HTML data in Magento’s static blocks. If you want to pull it into your PHTML templates, just call load up the model and use the…
Magento – Check if CMS Static Block is Enabled / Active
Static blocks in Magento are really useful. They offer an easy way to insert content into various parts of the template. You are only limited by your imagination. You can…
Magento – Get Logged In Customer’s Group ID
[php] <?php /* Check if customer is logged in */ $isLoggedIn = Mage::getSingleton(‘customer/session’)->isLoggedIn(); /* If customer is logged in */ if($isLoggedIn) : /* Get the logged in customer’s group ID…
How to Clone a Git Repository into the Current Directory
Somehow, most examples of Git’s clone command show a subfolder for the repository to be cloned into. I, for example, prefer navigating to the desired directory and like to clone…
Magento Fix – Blank Index Management Page (caused by GeoIP)
Do you get a blank page when navigating to your Index Management section of Magento admin? It could be that you have Openstream’s GeoIP module and that module is conflicting…
WordPress Contact Form 7 – Tracking Form Submissions in Universal Analytics
Are your Contact Form 7 submissions not working fine? Is the ‘Thank You’ success message flashing for a second and disappearing? The problem might be in the on_sent_ok hook. The…
Magento – Export All Customers to CSV with Billing and Shipping Address
<?php require_once(‘app/Mage.php’); umask(0); Mage::app(); $customers = Mage::getModel(‘customer/customer’)->getCollection(); $customers->addAttributeToSelect(‘*’); $customersArray[0] = array( ‘entity_id’, ’email’, ‘prefix’, ‘firstname’, ‘middlename’, ‘lastname’, ‘suffix’, ‘website_id’, ‘store_id’, ‘group_id’, ‘created_at’, ‘updated_at’, ‘is_active’, ‘is_subscribed’, ‘billing_firstname’, ‘billing_lastname’, ‘billing_street_1’, ‘billing_street_2’, ‘billing_city’,…
Magento – How to Rename the Attribute Code?
Connect to your Magento database using your favourite database GUI (PHPMyAdmin, HeidiSQL, MySQL Workbench, etc.). Caution: backup your database Go to the table eav_attribute and edit the column attribute_code. You can rename the…
Google Analytics > Acquisition Adwords > Search Queries > (not set)
Looking through a client’s Google Analytics ‘matched search queries’, I noticed that there was a lot of (not set) keywords. I spoke to Google’s Adwords Support – (United Kingdom –…
Magento CE 1.9.1.0 Adds Google’s Universal Analytics Tracking Code
Finally, Magento has added support for the Universal Analytics tracking code. You can enable this by going to System >> Configuration >> Sales >> Google API Pick Universal Analytics from…