Using frames can be a problem because as campaign-referred visitors navigate through your site, they will add ‘clicks’ to the campaign for each new page they visit. The campaign tracking in Yahoo! Web Analytics is based on query string match. As long as the URL does not change throughout the navigation, Yahoo! Web Analytics will not track the relevant campaign page views (as the required string-match will not occur).
In this case the setCmpQuery method should be used to override the query string from the original URL the campaign parameter. The string inflated in the setCmpQuery method overwrites the URL’s query string and appends its value to the URL. Though the visitors will not notice a difference, the data collected by Yahoo! Web Analytics will be appropriately affected. This will prevent the issue of simple clicks being attributed to campaigns on pages other than those intended as landing pages.