Setting up Google Analytics for a 2nd or later blog
This article is about how to set up Google Anaytics to work on subsequent Blogger sites, if you have already set it up for your first blog or website.




If you already have Google Analytics set up, then the process is a little different to setting it up for your first blog (which is nicely described by GreenLava over on BloggerSentral) - because you already have a Google Analytics account, which you must add a new web property to.

How to set up Google Analytics for a subsequent blog



Log into Analytics using the Google Account which you use for Analytics overall (ie which you used for your other blogs or websites).


Choose the Admin tab  (currently linked from near the right on the orange menu bar)


From the drop-menu under Property, choose Create a New Property




Choose Website (it's the default)


Choose whether to use Universal Analytics (currently still beta) or Classic Analytics.
(I've chosen Universal for the blog that I've just set up - will be interesting to see how it's different from classic for blogger).


Enter the
  • Sitename
  • Blog's URL
  • Industry category


Choose the Reporting Timezone:  I've left it on US / Pacific, because that's what my other blogs are based on.


Click Get Tracking ID.    The page that shows has your Tracking ID, it's like this (where the n's and m's are numbers):

      UA-100nnnnn-mm


  • nnnnnnn is your own number, identifying your account.
  • mm is the number of this analytics property - it is what makes your property ID unique.



Log in to Bogger using an account which has Administrator rights for the blog.


Put this Tracking ID into the    Settings > Other > Google Analytics >  Google Analytics Web Property ID  field.  


Click Save settings.


Wait 24 hours or so, for the code to activate.    If you're not seeing statistics after that, check if your blog really is getting visits (eg visit it yourself a couple of times)  - and ask for assistance in the Blogger Product forum.


Do you have Adsense on more than one site, including this one?

If you have AdSense on more than one website, and you are going to have it on this site, then you need to take some extra steps so that Analytics gets the AdSense data.    See here for more information.


Do you need to install the tracking code?

As well as your trackingID, Analytics also shows a block of code, with this header:
This is your tracking code. Copy and paste it into the code of every page you want to track.

The good news for Blogger users with newer Dynamic or Designer templates is that we can ignore this:   Blogger puts the code in for us.

But if you're using an older Layout or Classic template, or a Designer template that's older, you may need to install some code (not the Analytics tracking code, though) manually.

If you'e in doubt, edit your template in the usual way, and search for:
<b:include name='google-analytics' data='blog'/>
If you can find it, then do nothing, your blog already has the code you need, and your statistics should start flowing soon.

If you cannot find that line, then add it, just before the </body> tag.  (Search for   </body   and paste just before it).

Either way - don't install the tracking code from Analytics, because as Blogger operates now, this will not correctly count visits from mobile devices.



Related Articles:

How to edit your Blogger template

Using Google Analytics if you have AdSense on multiple websites.

Understanding Google accounts

Featureso Monday, 10 February 2014
AdSense Direct: A new way to sell direct advertising on your blog
This article introduces AdSense Direct, a new way to use AdSense to manage advertising that you directly sell ads on your blog or website - and to fill those spaces with AdSense ads when there are no Direct ads running.


AdSense have announced a new feature called AdSense Direct, which will let AdSense publishers (ie people showing ads on their blogs or websites) manage directly-sold ads using their AdSense account.

"Management" means that after an advertisement and campaign details are set up and approved, the ads will show on your site without any changes to your site (apart from having AdSense ads in on it), and having all contracts, invoicing and payments handled through your AdSense account.


How to use AdSense Direct

  • Arrange a direct deal with an advertiser -- this can be any advertiser, even one that doesn't currently use AdWords.
  • Enter the details into your AdSense account; more details about this here.
  • You will be given a link which you email (etc) to the advertiser.
  • The advertiser logs in (possibly after creating a Google account), upload their ad "creative" (ie text and pictures), approve the terms you entered, and pays for the deal with Google Wallet.
  • You - and Google - approve the ad creative (ie words and pictures).


After this, the ad runs during the time period that you set up for it.   And after it has finished, regular AdSense ads are shown instead.


Limitations

Bad news for now:
AdSense Direct is currently available to publishers and advertisers located in the U.S., and we hope to expand further in the coming months.
But my fingers are crossed that this will change soon.

There's no statement about how this works with AdSense's limits on the number of AdSense ad units shown: does an "AdSense Direct" ad count towards the three-per-type-per-page that non-premium AdSense advertisers are limited to? My guess is "yes" - because regular AdSense ads are shown if AdSenseDirect ones aren't available.

Possibly you can only have one direct advertising campaign at a time?  Google's announcement  also says "If you've already expanded to running multiple direct ad deals and ad networks on your pages alongside AdSense, try our ad serving solution DoubleClick for Publishers (DFP)." - and yes, AdSense Direct does seem to be a vastly simplified version of this, which will benefit Google by signing up more advertisers.

And AdSense-Direct will only work in places where you can put an AdSense ad unit.  For example it is possible to put ads right inside blog-posts.  But regular AdSense ads need Javascript to work, so people who read your blog by email subscription or RSS don't see them. It's likely that AdSense Direct ads will be the same.

I haven't checked, but I'm pretty sure that the standard AdSense rules will apply.   And this will mean that if your advertiser ticks any of Google's categroy boxes, their AdSense-served ad will not appear on your blog if you have blocked that category.

AdSense Direct is probably not available for Blogspot domains, or at least not for ones whose owner signed up for AdSense using the easier AdSense setups for hosted publishers.


Costs?

The $64m question!

I'm still looking for information about Google's charge or margin for using Direct. For regular AdSense (for non-premium publishers, anyway), its 42%, ie they pay out 58%. I guess it will be a lot lower - but still significant, as Google are providing tools to do some of the most troublesome bits of direct advertisign for us.

My (possibly hopeful!) guess is 20%. What's yours?




Related Articles:

Setting up AdSense for your blog

Easier AdSense setups for hosted publishers

Other advertising options for your blog

How to show an AdSense ad inside a blogger post

Featureso Wednesday, 22 January 2014
Putting a picture on your blog as a Gadget
You can put a picture anywhere in your Blogger blog that you can insert a gadget - and you can make it link to a post in your blog or to any other website.

The Image gadget

Dry dock in Claddagh Basin
A very simple way to put a picture into your blog is to use an Image gadget (previously called a Picture gadget).  

This is a tool that Blogger provides to make is easy to add a picture that shows up on all screen and is linked to somewhere.

Often gadgets (sometimes called widgets or page elements) are put on the sidebar - but in many blogger templates they can go in other places too (header, footer, etc).


Follow these steps to add a picture gadget:


1  Make sure you know where the original picture is and that you have copyright permission to use it.


2  Copy the location (URL or file system full path-name) of the picture - and remember whether it's on your computer, or on the internet.  
(This article tells you how to find the URL of a picture that's already stored in Picasa.   To find the URL of a picture on the internet, you can often right-click on it and choose "copy image location")


3  In Blogger, follow the usual Add a Gadget procedure, and choose the Image gadget from the list of options (you may have to scroll down to find it in the list).


4  In the Configure-Image box, enter the options you want for your picture.   These include:

  • The title for the Gadget,
  • The caption for the picture
    (the small words that go underneath it, usually explaining it, or where it came from),
  • What should happen when a reader clicks the picture - put this into the Link field
  • Where to find the picture
    (ie the file-location that you copied in step 2)
  • Whether to re-size (ie shrink) the picture to fix the space in the sidebar in your current template.


5 Press Save.


6  If necessary, drag-and-drop the new gadget to the place where you want the picture to go, and press Save.


  

What your visitors see:

People who visit your blog in a web-browser, will see the picture, in the place where you put the gadget.  However pictures are not supported gadgets for dynamic view templates, so it won't be see if you use one of these.

Also, people who see your blog through an RSS reader, or by receiving emailed updates don't see any gadgets, so they will not see the picture.  

If you entered a value for Link, your visitor's browser leaves your blog and goes to the Link location:  with the Picture gadget, then there is no way to make this open a new window.   If you want to do so, then use an HTML gadget instead, get the code for the picture, and put target = "_blank"   into it:, so the code looks something like: 
<a href="YOUR LINK" imageanchor="1" style="margin-left: 1em; margin-right: 1em;" target = "_blank"><img border="0" src="YOUR PICTURE LOCATION" /></a>



Related Articles

Options for putting pictures into your blog

Copyright, blogs and bloggers

Picasa and Blogger - an overview

Getting the HTML to add a picture to your blog

Finding a picture's location in Pisasa-web-albums

Finding the URL of a picture stored in Flickr

Showing a PowerPoint presentation in your blog

Why RSS / Subscribe to Posts is important for bloggers

Following a blog by email

Featureso Monday, 20 January 2014
Google use Google-Sites, so we should too!
This QuickTip explains why I now feel happier about using elements from Google Sites in my blogs.


What is Google Sites, and why would a Blogger use it

Long ago (back in the late 2000's) there was a product called Google Pages, which people could use to make their own simple websites. It wasn't the greatest product that Google ever made (or purchased), and eventually it was retired, with websites made with Pages transferred over to the newer Google Sites.

Sites always seemed a bit clunky. It doesn't seem to have a huge number of users.   And there are vastly better products for building more-complex websites, and for building simple ones (eg using Blogger to make a "real" website).

Now, I did use a Sites filing cabinet as the document-store for one of my sites that makes lyrics of certain public domain songs available in PowerPoint format. I chose it before Google Drive had been released, and when Docs was not nearly as good as it is now. And SEO does matter for this blog, so I came to appreciate that the link to a file in sites includes the file-name.

But I've always had a nagging sense that one day Sites would be retired too, and I'd have to move my files and edit all my posts to re-set the links.


Why won't Google retire Google Sites

Despite my previous misgivings, I'm now feeling a lot more relaxed about Google Sites.  

Why?   Well I don't have a crystal ball.   But this recent post from the Google Testing blog talks about how they are into "dogfooding" and that Sites is one of the tools they do this with, to " host team pages, engineering docs and more"

Just to explain, "dogfooding" is corporate-jargon for using your own products. As in "eating your own dogfood".  It's sometimes called "drinking your own chapmpagne" in companies that see themselves as a bit more refined, or "eating your own cooking".

Google's post is telling us that they are using Sites for building tools that they use in their own work. Most likely, they have a website built in Sites, which manages their plans for future Blogger development, and available only to people inside the company and working on the Blogger project.

So that makes me feel reassured that most likely:
  1. Sites won't be canned any time soon, or
  2. If Sites is turned off, Google will have a replacement tool which will provide the same (and better) features, and they will convert items now built in Sites to this better tool.

Phew!

Maybe it's time to review my file-hosting approach again, or to re-visit Sites and look at their FAQs, home-page and support-community, to see what other Sites tools I might find useful.

How have you used Sites in conjunction with your blog?




Related Articles:

File-hosting options: places to store files that you share from your blog

Why SEO doesn't matter for lots of bloggers

Featureso Friday, 17 January 2014
Delete, change or re-format the "Showing posts with label" message.
This article explains options for deleting, or changing the content or formatting of Blogger's "Showing posts with  LABEL.  Show all posts" message and it's ugly grey box.

If your blog has a Layout or Designer template, then when a person who is reading it chooses a label value, Blogger displays a page with (a summary of) your most recent posts with that label.

If there are more posts that Blogger is willing to show on one page, then there will also be "older posts" and "newer posts" links at the bottom of the page.

And - unless you have removed it - there will also be a message at the top of the page saying "Showing posts with label yourLabel. Show all posts"





Reader actions that cause a visitor to see this message include:
  • Clicking a label value that is displayed in your post header or footer
    (unless you have turned them off in the Layout > Blog Posts edit option).
  • Clicking a link that you have manually set up to show posts with a specific label (eg if you have used a Pages gadget to make a menu bar, and one of the options in it has a value like http://www.yourBlog.com/search/label/yourLabel?max-results=999

Unfortunately Blogger does not provide any way to customize or configure this message.
.
But it is easy enough to totally delete it, or to change the formatting, or to change the text..


How to delete the "Showing posts with LABEL" message

There are two ways that you can remove the "Showing posts with Label.   Show all posts" message.

Option 1:   Remove the code totally.   

To do this,

1  Edit your template in the usual way

2  Find the following text
<b:includable id='status-message'>
<b:if cond='data:navMessage'>
<div class='status-msg-wrap'>
<div class='status-msg-body'>
<data:navMessage/>
</div>
<div class='status-msg-border'>
<div class='status-msg-bg'>
<div class='status-msg-hidden'><data:navMessage/></div>
</div>
</div>
</div>
<div style='clear: both;'/>
</b:if>
</b:includable>

3   Delete that text and replace it with
<b:includable id='status-message'>
<b:if cond='data:navMessage'>
<div>
</div>
<div style='clear: both;'/>
</b:if>
</b:includable>

(If you just delete the text and do not put the replacement in, then it is possible that Blogger will add that section back in again later.)


Option 2:  Hiding the message using CSS

To do this, add  this CSS rule to your template in the usual way:
.status-msg-wrap,
.status-msg-body {
display: none;
}
(This approach is less risky because you do not need to edit your template, and because it's easier to change later.   But some people have reported that on their template, it has not worked.)


How to change the format of the "Showing posts with LABEL" message

Some people don't mind the actual  "Showing posts with Label.   Show all posts" message.   But they want to format it in a way that suits their blog's layout and colour scheme.

This is easily done, by adding some extra CSS rules to your template in the usual way.

To change the format of the message text, use rules like this:
.status-msg-body {
text-align: left;
line-height: 1.4;   
font-weight: bold;
color: red;
padding: 0.5em 0.3em;
width: 100%;
}

To change the grey-shaded background or the box:
.status-msg-wrap {
width: 100%;
margin: 0 auto;   /*  keep the auto statement if the width is less than 100%, so the box is centered */
position: relative;
}

There are a wide range of options - check with CSS reference guides for the options.   You may need to carry out some experiments with your template and how it looks with various options to decide on the best combination for your blog.



How to change the "Showing posts with LABEL" message

There are several ways that you can change the text in the "Showing posts with Label.   Show all posts" message.

Option 1:   Just replace it with some text

To show a sentence of your own instead of Blogger's standard message, 

1  Edit your template in the usual way

2  Find the following text
<b:includable id='status-message'>
<b:if cond='data:navMessage'>
<div class='status-msg-wrap'>
<div class='status-msg-body'>
<data:navMessage/>
</div>
<div class='status-msg-border'>
<div class='status-msg-bg'>
<div class='status-msg-hidden'><data:navMessage/></div>
</div>
</div>
</div>
<div style='clear: both;'/>
</b:if>
</b:includable>

3   Replace the line in bold (ie <data:navMessage/> ) with your own words.

For example, you might say
<b:includable id='status-message'>
<b:if cond='data:navMessage'>
<div class='status-msg-wrap'>
<div class='status-msg-body'>
Posts in this category include (use the Older Posts link to see previous posts):
</div>
<div class='status-msg-border'>
<div class='status-msg-bg'>
<div class='status-msg-hidden'><data:navMessage/></div>
</div>
</div>
</div>
<div style='clear: both;'/>
</b:if>
</b:includable>

To show the searched-for label value in your message, you need to use the   <data:blog.searchLabel/>   tag. For example, you might say
<b:includable id='status-message'>
<b:if cond='data:navMessage'>
<div class='status-msg-wrap'>
<div class='status-msg-body'>
Posts about <data:blog.searchLabel/>  include (use the Older Posts link to see previous posts):
</div>
<div class='status-msg-border'>
<div class='status-msg-bg'>
<div class='status-msg-hidden'><data:navMessage/></div>
</div>
</div>
</div>
<div style='clear: both;'/>
</b:if>
</b:includable>

Note:  if you are going to use this tag, then you need to choose your label values very carefully, so that they all make sense.   For example, in one blog I have some posts labelled "For quiz organizers" and others labelled "Finance", "Organisation" etc.    There is no way that I can write a sentence including the labels that makes sense for both of these.




Related Articles:





Featureso Sunday, 29 December 2013
How to show AdSense ads that are non-standard sizes
This QuickTip is about AdSense's new custom-size-advertisement option, which lets you choose the height and width of each advertisement that you show on your site.


quick-tips logo
Today, AdSense announced that we can now make ad-units in any size that we want - within certain restrictions.  

They don't use the phase in the text of their announcement, but the post-URL for their says that this feature is  "the-next-evolution-of-responsive-ads" - so I guess it can be seen as part of the efforts to cater to mobile-readers and mobile site-publishers, even though these ads themselves don't adapt to according to the size of your visitor's screen.


What will custom-size text ads look like:

For text ads, AdSesne, will work out the best number of text ads to show in each ad-block, and the individual ads will be shown the same way they that the look inside the standard ad-sizes.

Note that they say
"For unique ad unit sizes, our system will need some time before it can optimize the number of ads shown."

My guess is that this means that initially they will just fit a standard text-unit ad within your custom size, but may manage to figure how how to fit in more content over time, as they observe what display options make most money for you (and thus for them).


What will custom-size display ads look like:

For display ads (ie ones that show pictures which the advertiser has created), AdSense will work out the best size ad to show in the custom space that you select; the only guarantee is that "the selected ad will not be larger than the space requested".

There are some accompanying  rules about maximum and minimum AdSense ad-unit sizes, and any custom ad size that doesn't satisfy these restrictions simply won't appear on a page.  These rules may change (so do go and check the official version) - but to start with they say that:
  • Only one dimension can be greater than 300 pixels
  • The minimum width is 120 pixels
  • The minimum height is 50 pixels
  • Neither height nor width can exceed 1200 pixels.

One more point:   a while after the 300x600 ad-unit was introduced, they also added a rule saying there could be no more than one of these units per page.   With custom ads, they simply say:
As always, please use your best judgement when using custom-sized ad units; ad units similar in size to the 300x600 ad format will be subject to similar placement restrictions.


How to create a custom-sized AdSense advert for Blogger

  1. Log into www.adsense.google.com using your AdSense account.
  2. Start to create an ad unit in the usual way,
  3. Select "Custom ad size" from the Ad size drop-down and enter the width and height that you want for for your ad unit.
  4. Copy and paste the ad code into the HTML source code provided by AdSense, and add it to your blog in the usual way.


Note: you will only be able to do this if you have gone through the full AdSense sign-up process. If you do not have a custom-domain and signed up for AdSense after the fast-track process for hosted-content was introduced, then your only option is to choose standard ad-sizes from the regular Add-a-gadget > Adsense process.

Featureso Friday, 13 December 2013
Finding the co-ordinates of a place in the new Google Maps
This article explains how to get the co-ordinates for a particular location in the new and old Google Maps interfaces.


New vs old Google Maps

In mid 2013, Google started rolling out a new version of Google Maps, which even now (Nov 2013) is still in Beta-testing and only works with Chrome and Firefox on desktop (ie not mobile) devices.  It's related to Google Maps Engine Lite - a better tool for creating custom map - not not exactly the same product.

When I looked at Maps Engine Lite, one of the things I noticed is that there are a number of features which are missing from the new tool- and the lack of a right-click feature on map-positions means that lots of functions are accessed in a different, possibly non-intuitive, way.


How to find the co-ordinates of a particular place in the new Google Maps


Left click on the exact place that you want co-ordinates for.


Notice that there is a small circle which radiates at that place, or the nearest on-street place.   It's a little this, except that it a white/light shade, rather than grey:





In the top left of the map, a small display box appears, showing the nearest street address and a pair of latitude / longitude co-ordinates.




For both the street-address and the co-ordinates:
  • You can copy / paste these as text.
  • If you hover your mouse over them, then inside the maps a small circle radiates out from that spot.
  • They are links: if you click on them, then the map zooms and centres at that place, with a large red marker and the street-address name or co-ordinates displayed beside it.
Note that if the place you originally clicked on is an on-street address, then the address and and co-ordinates will point to the same place. But they are not necessarily the same. (I think this is a mistake on Google's part: if they show an address with co-ordinates immediately under it, most people will assume that the two relate to the same place, but that's not true at the moment. It may change soon-enough though.)



How to find the co-ordinates of a particular place in the existing Google Maps


Right click on the location that you want to find the co-ordiantes for.


Choose "What's here" from the pop-up menu.




At this point, Google Maps will:
  • Show the latitude and longitude co-ordinates in the maps search box
  • Put a green arrow showing the exact location that you clicked into the map itself
  • Put the street address on the nearest on-street location into the maps search-result list, along with a marker to this location on the maps.


So of course you can copy-and-paste the co-ordinates from the search box.




(The pictures in this article above barely look like maps because I'm led to believe that one of the Terms and Conditons for Google Maps is that we cannot put screenshots of the mapping data into how-to articles. So I've kept the places particularly zoomed-in, to avoid any distinguishing features.)







Related Articles:

How to embed a Google custom map into your blog or website

Google Maps Engine Lite - a better tool for creating custom maps

Featureso Friday, 1 November 2013