A source code is typically provided by the customer via a redirect link found on an affiliate website.
For example, a customer clicks your advertisement on a general retail site, containing a source code; and they’re redirected to a specific page on your site, such as Amazon.com. They’re redirected to your site you are on a general retail site. Using source codes, direct customers to specialized landing pages, featured product detail pages, category lists, and URLs.
The following example explains how to use and test source codes with the SiteGenesis application.
-
Create a promotion.
-
Click App Launcher
, and then select .
- Click New.
- Select a language and click Apply.
- Enter the ID (sourcecode), name (Source code test), enable it, set to searchable, and set exclusivity to NO (can be combined with any promotion).
- Click Apply.
- Scroll down and specify the promotion class: Product: Without Qualifying Products.
- Specify Discount: 50 > Amount Off.
- Discounted Products: ID=008884303989.
- Click Save.
- Click Apply.
-
Click App Launcher
-
Create a campaign and assign the promotion to it.
-
Click App Launcher
, and then select .
- Click New and create a campaign (Affiliates).
- Enable the campaign.
- Click Add Experience and Add Promotion.
- Locate and select sourcecode.
- Click Apply.
-
Click App Launcher
-
Configure a source code group.
-
Click App Launcher
, and then select .
- Click New.
- Enter ID (scgroup2) click Apply.
- Click the Code tab, enter a code in the Source Code specification: SCT[1..10].
- Click the Redirects tab. Under Active, select Product and enter the discounted product ID (008884303989)
- Click Apply.
-
Click App Launcher
-
Specify the distributor.
-
Click App Launcher
, and then select . Create a distributor name.
- Enter the following: /TANDIST/* p,,,SourceCodeRedirect-Start,,src,{0}. This entry is the distributor.
- Click Save.
-
Click App Launcher
-
Change the URL in the SiteGenesis application so that you can see how the source
code works.
- Open the SiteGenesis application in your browser.
-
Click App Launcher
, and then navigate to .
The resulting URL looks like this:
http://xx-dw.demandware.net/s/SiteGenesis/search?cgid=womens-clothing-tops&lang=en_US -
In the URL, remove everything after SiteGenesis.
The resulting URL looks like this:
http://xx-dw.demandware.net/s/SiteGenesis/ -
Add the distributor's name and the source code to the URL.
The resulting URL looks like this:
http://xx-dw.demandware.net/s/SiteGenesis/SCTST/SCT2 -
Click Enter.
You’re redirected to the following page:
http://xx-dw.demandware.net/on/demandware.store/Sites-SiteGenesis-Site/en_US/Link-Product?pid=008884303989