| Windows Live Ag...'s profileWindows Live AgentsPhotosBlogLists | Help |
|
March 03 Tracking ClickThroughsMany clients want to see how much traffic their agent is pushing back to their client’s website. By integrating ClickThrough tracking in your agent, you will be able to track Clicks and Impressions. Impressions are how many times a URL is presented to the user. Clicks are how many times a URL is clicked on by the user.
In order to track ClickThroughs in your project, we must wrap a redirect URL around the real URL. You will need to contact the Agents team to set up a redirect URL for you. Please note that your Agents contact does not personally set up the redirect URL—they must send a request to the Hosting Department. Redirect URL requests can take several days. The Project Manager will send you the redirect URL and you will add the following to your project: 1. Include the following package in a central file, such as YourProject/Shared/YourProject.pkg. This package includes all of the procedures and functions needed to track clicks and impressions in your agent.
lib:/Shared/Utilities/ClickThroughUtilities
2. Override the following function in the same file as above and return the redirect URL your PM sends you. function overrides GetClickThroughBaseUrl() return "http://zz.rdir.us"
When you want to track a URL in your project, you will use the following function: Click ClickThroughLink(“URL”, "here", " ---> ", "TEXT") URL will be replaced with the URL you want to track. TEXT will be what you want displayed in the Usage Reports. For example, if you are tracking the URL http://movies.msn.com/, you will include the following code: Click ClickThroughLink(“http://movies.msn.com/”, "here", " ---> ", "MSN Movies") In the agent output, it will display like so: Click here ---> http://zz.rdir.us/ct?K/0 The Agents team will set up the Usage Reporting site so you can view ClickThrough tracking. There will be a high level graph, displaying Total Clicks, Impressions, etc.:
There will also be separate sections for Impression and Click breakdowns. For example:
Comments (13)
Trackbacks (1)The trackback URL for this entry is: http://windowsliveagents.spaces.live.com/blog/cns!5BCD45E519E07634!473.trak Weblogs that reference this entry
|
|
|