How to Integrate an Amazon Associates Products Widgets into Sitefinity

How to Integrate an Amazon Associates Products Widgets into Sitefinity

May 12, 2009 0 Comments

The content you're reading is getting on in years
This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.

Introduction

Amazon.com offers a sales associate service where you can receive a 15% of the purchase price as compensation. By placing a special widget on your website, choosing some products to advertise, uploading a user control with special JavaScript on your website, you can easily use your website to earn extra money.

How to Make the Widget

First, you need to sign up for an associate account. You will be given a Tracking ID, after the sign up is complete. This ID encapsulates all of your personal info from Amazon.com, including your payment method and contact info. Although you could have a check sent to you, you can also have funds deposited in an Amazon.com gift certificate. Once you have logged in successfully, you will be brought to an Amazon Associates web page. This page will keep track of all the orders from your website. On the left of the web page, click on Get Started to see what widgets are available. On the next page you will learn more info on how the program works and how to create widgets:




When you have selected a widget, click learn more and follow the on-screen instructions to create the widget. Using the MP3 clips widget, here is the creation screen:



When you see this screen, click Add to my Web Page and you will receive some JavaScript code. Copy and paste that code into a user control like this:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AmazonFavoriteProducts.ascx.cs" 
    Inherits="AmazonFavoriteProducts" %> 
 
<script charset="utf-8" type="text/javascript" src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822/US/8001/508f2d4d-c377-47fc-85be-64a477164e77"</script> 
 
<noscript> 
    <href="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2F06-20%2F8001%2F508f2d4d-c377-47fc-85be-64a477164e77&Operation=NoScript"
        Amazon.com Widgets</a></noscript

Although the URL above has omitted my tracking ID, on your URL you'll notice a link to the product plus your tracking ID. This is how Amazon.com knows that you made the referral.

Once you have put the code into a user control, upload it to Sitefinity. Then, drag and drop it onto a page. For more info on user controls and Sitefinity, please refer to this article. Using the favorite product widget as an example, here is what is could look like:



progress-logo

The Progress Guys

View all posts from The Progress Guys on the Progress blog. Connect with us about all things application development and deployment, data integration and digital business.

Comments
Comments are disabled in preview mode.
Topics
 
 
Latest Stories in
Your Inbox
Subscribe
More From Progress
d12fcc0bdb669b804e7f71198c9619a7
5 Questions Automakers Should Ask to Improve Asset Uptime
Download Whitepaper
 
SF_MQ_WCM
2018 Gartner Magic Quadrant Web Content Management (WCM)
Download Whitepaper
 
What-Serverless-Means-For-Enterprice-Apps-Kinvey
What Serverless Means for Enterprise Apps
Watch Webinar