I'm using WSN to build a pseudo-store for use by customers of our brick-n-morter company. I've set perms. so that only I can add new links. The links I'm adding are commission junction links. The whole point of the "store" is to give our customers a place to purchase certain items and earn rebates for doing so. A typical CJ link looks like: http://www.kqzyfj.com/click-xxxxx-xxxxxx
In order for me to track who buys what and administer rebates I need to tack on a unique identifier to each link. I'm thinking {MEMBERNAME} will do nicely. www.kqzyfj.com/click-xxxxx-...xxxx?cust={MEMBERNAME}
Thanks a bunch Paul. On my initial scan through link.php (before posting my question) I was thrown by "header("HTTP/1.1 301 Moved Permanently");" It made me think that wasn't the right place for my hack. Now I'm curious why you use the Moved Perm. in the header? Thanks again.
If you don't pass a 301 header, you end up stealing google position from the sites you link to by google indexing your link.php link instead of the destination page, which really annoys them.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on append helios to every link
Beginner
Usergroup: Customer
Joined: Sep 29, 2005
Total Topics: 2
Total Comments: 7
I'm using WSN to build a pseudo-store for use by customers of our brick-n-morter company. I've set perms. so that only I can add new links. The links I'm adding are commission junction links. The whole point of the "store" is to give our customers a place to purchase certain items and earn rebates for doing so. A typical CJ link looks like:
http://www.kqzyfj.com/click-xxxxx-xxxxxx
In order for me to track who buys what and administer rebates I need to tack on a unique identifier to each link. I'm thinking {MEMBERNAME} will do nicely.
www.kqzyfj.com/click-xxxxx-...xxxx?cust={MEMBERNAME}
Any thoughts on how I can accomplish this?
Beginner
Usergroup: Customer
Joined: Sep 29, 2005
Total Topics: 2
Total Comments: 7
Just to point out the obvious, simply placing cust={MEMBERNAME} does nothing as the variable does not get parsed when entered as part of the URL...
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You'd need to edit link.php to intercept $url just before it goes it it, and append 'cust='. $thismember->name
Beginner
Usergroup: Customer
Joined: Sep 29, 2005
Total Topics: 2
Total Comments: 7
Thanks a bunch Paul. On my initial scan through link.php (before posting my question) I was thrown by "header("HTTP/1.1 301 Moved Permanently");" It made me think that wasn't the right place for my hack. Now I'm curious why you use the Moved Perm. in the header? Thanks again.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
If you don't pass a 301 header, you end up stealing google position from the sites you link to by google indexing your link.php link instead of the destination page, which really annoys them.