InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


External traffic tracker/redirector... Expand / Collapse
Author
Message
Posted 23/02/2006 14:56:38
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Customers
Last Login: 15/06/2006 15:30:05
Posts: 19, Visits: 95
I'd like to see an option for tracking outbound traffic from forum posts. When a user embeds a [url=][/url] and it's destination is a different domain I'd like to force those links through a traffic redirector page to capture the click.

In my current forum I do this through a click.asp page that 301 redirects and records the URL to the database.

This redirection scheme has the added bonus of not passing on PageRank if that's desirable for your forum.
Post #10152
Posted 27/02/2006 08:33:18
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 02/01/2007 12:46:48
Posts: 12, Visits: 74
In the admin in the IFCode section you change change what the [url] coverts to. You could add an onclick event to the anchor, a nofollow tag or pass the url as a parameter to a redirecting url... It just depends which way you want to go.

Hope this helps



Jeremy Hopkin
The Wine Community Forums for Champagne Reviews
Post #10191
Posted 27/02/2006 08:41:18
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 02/01/2007 12:46:48
Posts: 12, Visits: 74
I'm guessing here, but I think in the Admin CP, under manage IFCode, you want to edit the Hyperlink tag and change the replace pattern to something like:

<a href="click.asp?url=$1" target=_"blank" class="SmlLinks">$1</a>

And the Hyperlink & description tag to something like

<a href="click.asp?url=$1" target="_blank" rel="nofollow" class="SmlLinks">$2</a>

Depending on how your click.asp page works and where it is relative to the forum. You could get a bit funkier with the search patterns if you want to detect if its an external link, but be careful if you are not sure about regular expressions.



Jeremy Hopkin
The Wine Community Forums for Champagne Reviews
Post #10192
Posted 27/02/2006 11:03:19
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Customers
Last Login: 15/06/2006 15:30:05
Posts: 19, Visits: 95
That's a great idea. I'll give it a shot.

Post #10196
« Prev Topic | Next Topic »

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ryan Healey, Mark Christianson, Bare, James Trott

Permissions Expand / Collapse

All times are GMT, Time now is 12:00pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 9 queries. Compression Disabled.
Home | Products | Purchase | Support | Company | Contact Us
Privacy Statement | © 1999-2007 InstantASP Limited. All Rights Reserved.