<?xml version="1.0"?>
<rss version="2.0">
    <channel>
        <title>Gossamer Forum</title>
        <link>http://www.gossamer-threads.com/forum/</link>
        <language>en-us</language>
        <managingEditor>gforum@gossamer-threads.com</managingEditor>
        <pubDate>Sat, 18 May 2013 11:24:16 GMT</pubDate>
        <generator>Gossamer Forum by Gossamer Threads, Inc.</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        <image>
            <url>http://static.gossamer-threads.com/forum/images/gforum-logo.png</url>
            <title>Gossamer Forum</title>
            <link>http://www.gossamer-threads.com/forum/</link>
            <width>50</width>
            <height>50</height>
        </image>
        <item>
            <title>[ TIP] Track outgoing hits, while still tracking the outgoing hits.</title>
            <link>http://www.gossamer-threads.com/forum/Products_C9/Gossamer_Links_C5/Development%2C_Plugins_and_Globals_F20/%5B_TIP%5D_Track_outgoing_hits%2C_while_still_tracking_the_outgoing_hits._P303896/?page=unread#303896</link>
            <description>Hi,

I had to write this for a client for a job today, so thought I would share it - as I can imagine quite a few people would wanna use this :)

Basically, it lets you link outgoing links in your directory, as if you were just using:

&amp;lt;a href=&amp;quot;&amp;lt;%URL%&amp;gt;&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;&amp;lt;%Title%&amp;gt;&amp;lt;/a&amp;gt;

...but still tracks the outgoing hits.

The steps are:

1) Open up /static/utils.js, and add:



Code:
function trackclick(aid) {
if(document.images){
(new Image()).src=&amp;quot;/cgi-bin/directory/track.cgi?ID=&amp;quot; + aid;
}
return true;
}

(be sure to change the /cgi-bin/directory/ to the correct place of track.cgi)

2) In link.html, find the bit that links to jump.cgi, and add this;

onclick=&amp;quot;return trackclick(&amp;lt;%ID%&amp;gt;);&amp;quot;

..so it would look something like:



Code:
&amp;lt;a href=&amp;quot;&amp;lt;%URL%&amp;gt;&amp;quot; target=&amp;quot;_blank&amp;quot; onclick=&amp;quot;return trackclick(&amp;lt;%ID%&amp;gt;);&amp;quot; &amp;gt;&amp;lt;%Title%&amp;gt;&amp;lt;/a&amp;gt;

3) Upload the attached script to your cgi-bin, and CHMOD to 755. Be sure to edit the &amp;quot;path&amp;quot; (between &#039;&#039;) to your path to the Glinks admin area.

Then, give it a go (get an example link, check the number of &amp;quot;Hits&amp;quot; that exist for it, and then do a test jump - and see if it increased)

Anyway, hopefully this is useful to people

Cheers</description>
            <guid>cffc693c87b194fadb7c7ae60d17076b</guid>
            <pubDate>Oct 29, 2008, 10:52 AM</pubDate>
        </item>
    </channel>
</rss>
