Information Technology Reference
In-Depth Information
Artificially Triggering Campaigns
campaigns are an important part of Yahoo! Web Analytics. the goal is to identify the
visitor with existing paid search advertising and to assess the success of existing online
marketing strategies. to artificially trigger a campaign during a visit session, you can
use the _S_CMPQUERY command.
version 4
function camp(camppattern)
{
var tracking_object = createITT();
tracking_object._S_CMPQUERY = camppattern;
tracking_object.submit();
}
version 5
function camp(camppattern)
{
var YWATracker = YWA.getTracker(“1000123xxxx”);
YWATracker.setCmpQuery(“camppattern“);
YWATracker.submit();
}
127
this code will also generate a page view. It's not likely that you will use this
function extensively, as campaigns are normally triggered on the entry page of a site.
However, some websites use a server-side redirect to automatically remove the track-
ing strings and all the variables from the target url of the campaign for branding and
other purposes. In this scenario, Yahoo! Web Analytics will not be able to pick up a
campaign source, and you are forced to use the CmpQuery function to pass the tracking
information to Yahoo!
Yahoo! Web Analytics also has the capacity to track internal campaigns as dis-
tinct from the normal campaigns that relate to external traffic sources. these internal
campaigns are more relevant to Ajax-based tracking and can be monitored using the
following syntax:
version 4
function internalcamp()
{
var tracking_object = createITT(intcamppattern);
tracking_object._S_CMPQUERY = “_s_icmp=”+intcamppattern
tracking_object.submit_icmp();
}
Search WWH ::




Custom Search