Search the web
Sign In
New User? Sign Up
webanalytics · The Web Analytics Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Google Analytics - Appending Campaign Data to the URI   Message List  
Reply | Forward Message #17090 of 24284 |
Re: [webanalytics] Google Analytics - Appending Campaign Data to the URI

I think there is some problem in the code please check it once from your
profile.

~Bhagawat.

John Cole <yahoo@...> wrote: I want to
setup campaign tracking for legacy widgets already out in
the world. The links to our site already include parameters in them,
just not the Google Analytics tracking parameters.

For example:

http://eventful.com/performers/P0-001-000000162-8/demand?from_sticker=300x325_bl\
ueflag


We modified the GATC on our site in at attempt to append the GA tag to
the URL before we send it to Google. If the above parameters are in
the referral link, then we append the GA tag.

The appended URL reported to GATC would look like this:
DF_demand_start_unknown?

from_sticker=300x325_blueflag&utm_source=widgets&utm_medium=widgets&utm_campaign\
=demand_widget

Here is some of the code our engineer put together:

<script>
function utmx_section(){}function utmx(){}
(function(){var
k='2743214403',d=document,l=d.location,c=d.cookie;function f(n){
if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return
c.substring(i+n.
length+1,j<0?c.length:j)}}}var
x=f('__utmx'),xx=f('__utmxx'),h=l.hash;
d.write('<sc'+'ript src="'+
'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-
analytics.com'
+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')
+'&utmxtime='
+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
'" type="text/javascript" charset="utf-8"></sc'+'ript>')})();
</script>

I've checked our Google Analytics reports, but they still report the
pages just as before. The content report doesn't display the tags
we've added, nor do the visits get segmented into a campaign.

How can we get this to work?






Thanks & Regards,
Bhagawat J.

Position2.com
+91 9986508042
skype id: bhagawat23

---------------------------------
Bring your gang together. Do your thing. Find your favourite Yahoo! Group.

[Non-text portions of this message have been removed]




Fri May 9, 2008 12:25 pm

bhagawat_jadhav
Offline Offline
Send Email Send Email

Forward
Message #17090 of 24284 |
Expand Messages Author Sort by Date

I want to setup campaign tracking for legacy widgets already out in the world. The links to our site already include parameters in them, just not the Google...
John Cole
jcole75062
Online Now Send Email
May 9, 2008
2:48 am

I think there is some problem in the code please check it once from your profile. ~Bhagawat. John Cole <yahoo@...> wrote:...
bhagawat jadhav
bhagawat_jadhav
Offline Send Email
May 9, 2008
3:54 pm

Have you used something like Charles Proxy to see what data stream the browser is sending back to google? That's the first thing I'd check. Do a proper url...
bryan.cristina
Offline Send Email
May 9, 2008
3:55 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help