O'Reilly logo

FBML Essentials by Jesse Stay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

<fb:google-analytics/>

Synopsis

<fb:google-analytics uacct="..." ... >...</fb:google-analytics>

Renders the standard Google Analytics JavaScript code in the place where you put the tags. For more information on Google Analytics, refer to http://analytics.google.com and http://www.google.com/urchin/index.html. Basically, Google Analytics and Google’s Urchin Software analyze your site traffic and provide you with reports about how your visitors use your site.

FBML-Specific Attributes

Required

uacct=[string] default: none

The Urchin or Google account ID provided to you by Google Analytics. It’s often the text in the variable _uacct provided in the JavaScript that Google gives you.

Optional

Based on http://wiki.developers.facebook.com/index.php/Fb:google-analytics, the following optional attributes are available:

page=[string] default: none

The argument given to the urchinTracker() function; either a page or a virtual page.

ufsc=[1|0] default: 1

Sets the client info flag, where 1 = on and 0 = off. This is an Urchin Traffic Monitor (UTM) user setting.

udn=[auto|none|domain] default: auto

Sets the domain name for cookies. Specify auto, none, or domain. This is a UTM user setting.

uhash=[on|off] default: on

Specify whether the unique domain hash for cookies is on or off. This is a UTM user setting.

utimeout=[int] default: 1800

Sets the inactive session timeout in seconds. This is a UTM user setting.

ugifpath=[string] default: /__utm.gif

Sets the web path to the __utm.gif file. This is a UTM user setting. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required