homepage Welcome to WebmasterWorld Guest from 54.197.15.196
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
Tracking outbound links as part of a Google Analytics Campaign
SilverLining

5+ Year Member



 
Msg#: 4352397 posted 9:49 am on Aug 17, 2011 (gmt 0)

Hi everyone,

How can one track outbound links as part of a Google Analytics campaign? I see it is possible for Goals.

I have added the code below to the Google Analytics script:

pageTracker._trackPageview('/Campaign Name/http://www.example.com/?src=icecream');

Can one use spaces in the above listed
Campaign Name?

I have added
?src=icecream to have some form of control over the "inflated" page view stats, but not sure whether this is necessary.

How can one catch the following params:

utm_source
utm_medium
utm_term
utm_campaign

Thanks in advance.

 

toplisek

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4352397 posted 10:24 am on Aug 17, 2011 (gmt 0)

Check:
https://docs.google.com/previewtemplate?id=0Agl8lwsP-cNVdDJDa0s1cnNmOFZDMUFYa0kyN0RNaWc&mode=public&pli=1

Some people say it is bug but check this:
utm_campaign=Bing%2B-%20Campaign%20One.

It looks like the very first space is converted to %2B, all other spaces on the same field are converted to %20.

SilverLining

5+ Year Member



 
Msg#: 4352397 posted 11:44 am on Aug 17, 2011 (gmt 0)

Thank you, toplisek. I have used "%2B". I cannot currently access the Google Spreadsheet, but will check later. Thanks for the link.

Where will these stats be listed in Google Analytics and can it be added to a Campaign?

toplisek

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4352397 posted 12:04 pm on Aug 17, 2011 (gmt 0)

As I understand all Google statistics is compliant. These means you can set Goal and this will be seen inside ALL tools. Set Goal and track (try).

Steps at the top tracked page (not landing):
1. Redirection

<?php

header("Location:http://www.mytrackedsite.html ");
die;

?>

2. Landing page and htaccess redirection
RewriteRule ^ads/([0-9]+)\.html$ ads/$mytrackedpage.php?utm_source=PCworld&utm_medium=cpm&utm_campaign=bing [L]

still



 
Msg#: 4352397 posted 11:38 pm on Aug 17, 2011 (gmt 0)

So by "outbound links" do you mean incoming referrals from other sites to yours, or visitors exiting your site via links you have created?

If it's the first one, and you have control over the inbound link's URL structure you can use Google's URL builder to pass whatever params you want. Saying that, depending on how many links you are trying to track, this solution may not scale well, in which case I'd put together a script on your end to pick up the use of a generic param say yoursite.com/?referral and store the referrer data as a custom variable for later segmentation.

If it's the latter, I'd include an onclick event on outbound links to generate an Event.

toplisek

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 4352397 posted 11:04 am on Aug 23, 2011 (gmt 0)

ads?6115&utm_source=MYDOMAIN+Newsletter+Content&utm_medium=newsletter&utm_content=MYDOMAIN+Newsletter+(19702)+XVFGP98mmk&utm_campaign=Premium+Content+Yearly+Subscription
Check this sample.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved