Welcome to WebmasterWorld Guest from 220.127.116.11 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Tracking outbound links as part of a Google Analytics Campaign SilverLining
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:
Can one use spaces in the above listed
? I have added
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.
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
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
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]
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
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.