Facebook

The Facebook plugin captures Facebook-specific events such as Likes and Shares. It can also collect visitor and event information on pages that have been integrated with Facebook. This data populates reports in the Analytics 10 Facebook App spaces and can be used to create custom reports.

Using Tag Builder

Facebook Plugin Sample Code

window.webtrendsAsyncInit = function(){
                  var dcsConfig = {
                        dcsid: "dcs9x99xxxx9xxx9xx9xxxx9x_9x9x",
                        timezone: -7,
                        plugins: {
                              facebook:{src:"//s.webtrends.com/js/webtrends.fb.js"}
                        }
                         };
                  var dcs=new Webtrends.dcs()
                        .init(dcsConfig)
                        .track();
            }

The following parameters are passed from the Facebook plugin:

Visitor Data

WT.fb_uid
The user locale.
WT.fb_ug
The user gender (M or F).
WT.fb_ucl
The user location as it has been set it in Facebook.
WT.fb_uau
Indicates whether Facebook user is also the author of the app. If the user is also the author, this parameter is set to 1. Otherwise, it is null.
WT.fb_fc
A count of the visitor’s friends.

General Information

WT.fb_js
Indicates whether the page has Facebook JavaScript installed (value is set to 1) or whether the plugin timed out waiting for Facebook JavaScript to load (value is set to 0). When set to zero, no other metrics are passed. For more information, see http://developers.facebook.com/docs/reference/javascript/.

Facebook Custom Data

Webtrends Analytics parses values from the field app_data that begin with WT, DCS, and DCSext. For more information, see http://developers.facebook.com/docs/authentication/signed_request/.

Facebook Events

The following events occur when the user interacts with Facebook Social plugins.

WT.dl
The type of event. A social conversion has the value 111. Pageview had the value 0.
WT.convval
Indicates a social conversion and is used to record the original event type from Facebook. It's in the format fb_{Facebook’s EventType}
DCS.dcsuri
"/multitrackevents/fb_{Facebook’s EventType} Deprecated event parameters. These Facebook parameters continue to be passed; however, new parameters are recommended for custom reports.
WT.conv
Note: This event parameter has been deprecated.
Indicates a social conversion. It is in the format Facebook:{WT EVENT TYPE}.
WT.soc_action
Indicates a social conversion. It is in the format Facebook:{WT EVENT TYPE}.
Table 1. Event Types
Webtrends Event Type Facebook Event Type
'auth.login' "Login"
'auth.logout' "Logout"
'edge.create' "Like"
'edge.remove' "Unlike"
'message.send' "Share"
'comments.add' "CommentsAdd"
'comment.remove' "CommentRemove"
'comment.create' "CommentAdd"