Referral Link Bookmarklet
Anastacia Gutierrez
Posted: Sunday, April 22, 2012 11:15:32 AM
 Zazzle Proseller
Groups: ProSeller

Joined: 11/28/2011
Posts: 29
Hi All.

I realize that most here people are probably using the zazzle toolbar available, so this will be a duplication of functionality. However, I just created a quick and easy bookmarklet for myself so I could store a low-profile button in my browser toolbar.

Code:
javascript:if(document.location.search.substr(1).split('?')==''){prefix='?';}else{prefix='&';}refURL=document.location.href+prefix+'rf=YOUR_ASSOCIATE_ID_HERE';void(window.prompt("Copy Referral link to clipboard%E2%80%A6\n\nRight click on the selected text and select 'Copy'\nOr use ctrl/cmd+C",refURL));


The idea here is simple. For those of you who aren't familiar with bookmarklets, they are snippets of javascript code that get stored in a browser bookmark. When you click on them, they run the code on the current page you are browsing. So this script takes your current web address (like a store product or category) and just appends your associate id as a referral. A window will popup and prompt you to copy the link to your clipboard. You can right click, or ctrl+c. Once you are done, dismiss the window and your link is now ready to paste.

Installation:
1. Create a bookmark in your preferred browser and give it a name that describes it (i.e. "Zazzlify", "Create Zazzle Referral", etc.)
2. Find the words "YOUR_ASSOCIATE_ID_HERE" in the code above and replace it with your own number (example: 238456178864917735).
3. Edit your previously created bookmark and paste the code (with your associate id inserted) into the URL/address field.

If you try it out and have problems, feel free to ask questions. But I'm bad about remembering to check back in the forums. You can always contact me via my zazzle profile, if you fail to get a timely response.

Cheers!
Beachwalker
Posted: Friday, May 18, 2012 9:31:42 AM
 Zazzle Proseller
Groups: ProSeller

Joined: 4/15/2008
Posts: 3,605
Thanks for posting this Anastacia!

It makes it possible to pre-add tracking codes to link bookmarks, too. Very handy!

Deb
M
Posted: Friday, May 18, 2012 11:39:54 AM
 Zazzle Proseller
Groups: ProSeller

Joined: 3/11/2011
Posts: 299
That's really good, very simple and easy to use. I have also just released a bookmarklet, you can find all the info here:

Awesome referral link builder now with tracking!

It is basically a modification to the Zazzle referral link builder to enable it to include a custom tracking code.
maigi
Posted: Tuesday, May 22, 2012 5:10:46 AM
 Zazzle Proseller
Groups: ProSeller

Joined: 4/5/2009
Posts: 135
Location: Tallinn
Anastacia Gutierrez wrote:

javascript:if(document.location.search.substr(1).split('?')==''){prefix='?';}else{prefix='&';}refURL=document.location.href+prefix+'rf=YOUR_ASSOCIATE_ID_HERE';void(window.prompt("Copy Referral link to clipboard%E2%80%A6\n\nRight click on the selected text and select 'Copy'\nOr use ctrl/cmd+C",refURL));

Hi,
This is fantastic! Thank you so much! This is what I was looking for.
What is %E2%80%A6?
Do you have any suggestions where to find best syntax explanations for javascript? Shocked
Code works great!
Thank you, thank you very much!
Grin
Anastacia Gutierrez
Posted: Thursday, May 24, 2012 12:44:42 PM
 Zazzle Proseller
Groups: ProSeller

Joined: 11/28/2011
Posts: 29
Quote:
What is %E2%80%A6?
Do you have any suggestions where to find best syntax explanations for javascript?


Hi maigi.

All of this gibberish (%E2%80%A6) is UTF-8 encoding for an ellipses (ellipses = "..."). I'm not sure if it was dreamweaver that was kind enough to encode that for me or zazzle, but it wasn't something I intentionally did. In fact, I didn't even notice that it was there until you pointed it out!

Whenever you see those % marks showing up, it means it's encoding of some sort. Happens a lot with URLs. If you want to know what they mean, you can just paste it directly into a google search. You'll find lots of directories that help. This is the one I just used to decipher my own code: http://www.tachyonsoft.com/uc0020.htm

I don't have any specific recommendations for javascript. I usually just do an online search for whatever I particularly want to do. But getting started with any code usually involves doing a "hello world" test. Here are links to a few javascript ones online:
About.com - Javascript Hello World
Javascript 101

And then W3 is always a good resource for syntax and tutorials/examples: http://www.w3schools.com/js/default.asp

Hope you find some of that helpful!
maigi
Posted: Saturday, June 09, 2012 2:08:33 PM
 Zazzle Proseller
Groups: ProSeller

Joined: 4/5/2009
Posts: 135
Location: Tallinn
Hi Anastacia,
It has been awhile, but thank you very much for the explanation and links! Grin
I have created several browser buttons with my referral links. It has been a great help.
Thank you!
Roses
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Print this topic
RSS Feed
Normal
Threaded