Buy Legacy Standard Edition (FREE Subscription) Google Apps Account

How to Change Primary Domain in Google Apps

Now Google allows Google Apps users to change their Primary Domain as announced by Google Apps blog on 5th October 2015. However, the change can only be done through Google Apps Customer API interface instead on GUI in the Admin Panel.

Bear in mind that, you can only change Primary Domain from Secondary Domain. Domain Alias is not allowed. So, FREE Standard Version (called Legacy or Grandfather version) is out of luck, unless they already add the Secondary Domain in their account prior to 14th November 2014. This date is the day when Google disabled the function to add Secondary Domain in FREE Standard Version. Now, FREE Standard Version users may only add Domain Alias.

Back to Change of Primary Domain in Google Apps, actually the process is rather easy. You may refer to step by step instruction below.

  1. Login to your Google Apps Control Panel.
  2. Browse to Google Apps API Page where you change customer information. Make sure you see your Admin email address in to right corner.
  3. Click “Try it now” link.
  4. In “customerKey” field enter “my_customer“.
  5. In “fields” field enter “customerDomain“.
  6. Click “Request body” field, a drop down box will appear & select “customerDomain“.
  7. In the newly appear field, enter your Secondary Domain which you want to change to Primary Domain.
  8. Finally click the blue “AUTHORIZE AND EXECUTE” button.
  9. When the process is done, your secondary domain is converted to Primary Domain and vise versa.

Note :- If you are looking for FREE Standard Version Google Apps for your domain, head over to They provide services to convert your domain to Primary Domain of FREE Standard Version Google Apps with full Administration control.


Implementing EU User Consent Policy in Thesis 2+ WordPress Theme

As mentioned in Implementing EU User Consent Policy for Google AdSense post, AdSense user has to notify EU user on the use of cookies. We already have the code to implement this but how to implement if you are using WordPress Thesis 2+ WordPress theme?

In order to implement EU User Consent Policy in Thesis 2+ WordPress Theme, we have to add a Custom Hook Code in either /wp-content/thesis/master.php or /wp-content/thesis/skins/skin-name/custom.php file.

Copy the following code in the custom file. Bear in mind that this code will only work if you are using Cloudflare service for your domain & enable IP Geolocation in the specific domain.

/* EU User Consent Policy */
function eu_user() {
	$country_code = $_SERVER["HTTP_CF_IPCOUNTRY"];

	$europe = array('EU', 'AT', 'BE', 'BG', 'CY', 'HR', 'CZ', 'DK', 'EE', 'FI', 'FR', 'DE', 'GR', 'HU', 'IE', 'IT', 'LV', 'LT', 'LU', 'MT', 'NL', 'PL', 'PT', 'RO', 'SK', 'SI', 'ES', 'SE', 'GB', 'AL', 'MK', 'ME', 'RS', 'TR', 'BA', 'XK');

	if(in_array($country_code, $europe)) { ?>
		<!-- Begin Cookie Consent plugin by Silktide - -->
		<script type="text/javascript">
		 window.cookieconsent_options = {"message":"This website uses cookies to ensure you get the best experience on our website","dismiss":"Got it!","learnMore":"More info","link":null,"theme":"dark-bottom"};
		<script type="text/javascript" src="//"></script>
		<!-- End Cookie Consent plugin -->
add_action('hook_before_html', 'eu_user');

Page 1 of 4912345...102030...Last »