Jump to content
Sign in to follow this  
nbenson

Tracking widget/morefoot banner with GA

Recommended Posts

nbenson

Hey folks, Naturally I need to start tracking banner clicks for a site I put together using Platform pro. Unfortunately I didn't get very far with Google support to try and find an answer so I figured I'd come here. Here is the page on from google about tracking banners and such: http://www.google.com/support/analytics/bin/answer.py?answer=55526 The code they suggest putting in would be the following: <a href="http://www.advertisersite.com" onClick="javascript: pageTracker._trackPageview ('/bannerads/advertisername/bannername');"> So for example to track the side ad on www.wngs-tv.com where would I put the above code? And after I figure out where to put that code, I just need to update it where it says advertisersite to the clients actual site? Thanks for the help guys!

Share this post


Link to post
Share on other sites
kastelic

I'm not seeing the ad on your page, but at any rate, an 'a' tag is an anchor tag which means its a link. So You need to wrap your banner image with the 'a' tag like;

``[/code]

	
	Then the 'a' of course has all kinds of parameters, some optional. For example 
[code]href="the-advertiser.com"
is where the link is pointing. It is probable that if you have an ad up on your site that this 'a' tag is already in place with the correct
href
. The parameter of importance here is the one that starts
onClick

, as that is the one allowing Google to track clicks , so you just need to add that to the anchor tag thats already wrapping your ad.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×