Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 12-20-2011, 11:42 AM   #1
Still im untangible
War Room Member
 
high_plains_drifter's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 559
Thanks: 68
Thanked 52 Times in 36 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via MSN to high_plains_drifter Send a message via Yahoo to high_plains_drifter Send a message via Skype™ to high_plains_drifter
Default Tracking an external link as a goal in Google Analytics

Im trying to decipher this help article on google its not making much sense to me

Tracking an external link as a goal - Analytics Help

Quote:
For example, to log every click on a particular link to IANA — Example domains as a pageview for /G1/example.com you would add the following attribute to the link's tag:

<a href="http://www.example.com" onClick="javascript: pageTracker._trackPageview("/G1/example.com");">
i want to do this for my amazon links, but i just dont get what "/G1/example.com" should be??

high_plains_drifter is offline   Reply With Quote
Old 12-20-2011, 12:41 PM   #2
Advanced Warrior
 
mgreener's Avatar
 
Join Date: Oct 2011
Posts: 500
Thanks: 24
Thanked 80 Times in 78 Posts
Social Networking View Member's FaceBook Profile 
Default Re: Tracking an external link as a goal in Google Analytics

Hi,

So to adapt this example to your Amazon links. Let's say that one of your links is to a 64GB iPad 2 and one of the links is to a Kindle.

In order to track, you would setup links with identifiers such as:

<a href="http://www.affiliatelinkgoeshere" onClick="javascript: pageTracker._trackPageview("/amazon.com/ipad64gb");">


<a href="http://www.affiliatelinkgoeshere" onClick="javascript: pageTracker._trackPageview("/amazon.com/kindle");">

In other words, the "/G1/example.com" can be whatever you want it to be and will show up in analytics as being clicked on. So be sure to make each something that you will understand when looking at your stats.
mgreener is offline   Reply With Quote
Old 12-20-2011, 01:13 PM   #3
Still im untangible
War Room Member
 
high_plains_drifter's Avatar
 
Join Date: Sep 2010
Location: London
Posts: 559
Thanks: 68
Thanked 52 Times in 36 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via MSN to high_plains_drifter Send a message via Yahoo to high_plains_drifter Send a message via Skype™ to high_plains_drifter
Default Re: Tracking an external link as a goal in Google Analytics

Quote:
Originally Posted by mgreener View Post
Hi,

So to adapt this example to your Amazon links. Let's say that one of your links is to a 64GB iPad 2 and one of the links is to a Kindle.

In order to track, you would setup links with identifiers such as:

<a href="http://www.affiliatelinkgoeshere" onClick="javascript: pageTracker._trackPageview("/amazon.com/ipad64gb");">


<a href="http://www.affiliatelinkgoeshere" onClick="javascript: pageTracker._trackPageview("/amazon.com/kindle");">

In other words, the "/G1/example.com" can be whatever you want it to be and will show up in analytics as being clicked on. So be sure to make each something that you will understand when looking at your stats.
thankyou very much for clearing that up, it makes sense now

im wondering, do you think i could use my prettylink url instead of the full amazon link?

that way i can track my goals in GA and also check out clicks on PrettyLink

high_plains_drifter is offline   Reply With Quote
Old 12-20-2011, 01:45 PM   #4
Senior Warrior Member
War Room Member
 
KirkMcD's Avatar
 
Join Date: Apr 2006
Location: , , USA.
Posts: 2,493
Thanks: 43
Thanked 168 Times in 158 Posts
Default Re: Tracking an external link as a goal in Google Analytics

Quote:
("/G1/example.com")
You can put what ever you want in the quotes, but it needs to look like a URL. It is NOT used for the actual link, but only to track the click.
KirkMcD is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum

Tags
analytics, external, goal, google, link, tracking

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 09:25 PM.