Book Image

WooCommerce Cookbook

By : Patrick Rauland
Book Image

WooCommerce Cookbook

By: Patrick Rauland

Overview of this book

Table of Contents (17 chapters)
WooCommerce Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Cloaking an affiliate link


One of the topics we haven't really touched on is affiliate marketing. You don't have to sell just your products. You can use WooCommerce to create product pages for other people's products as well and link them to a site where you have an affiliate deal. You could be recommending related products or you could have an entire store that's nothing but affiliate products.

To track affiliate traffic, the site owner will usually give you a special link that you have to use. Sometimes, they look pretty normal; for example, http://mywebsite.com/?ref=25.

And some other times, they look pretty scary; for example, http://shareasale.com/?referrer=4234242342&target=243534534543&otherboringdata=23424234234.

When the links don't look pretty, some users may get scared off. So you can set up a special URL on your site that points to the affiliate URL. On your site, you'll use the pretty link, and that will take the user to the affiliate URL. This is called link cloaking.

How...