Target Best Practices Guide

As a service provider, there are a few simple best practices to follow when implementing your OExchange Target support. These will help you improve the user experience and increase traffic to your service.

Welcome new users on your Offer page

As OExchange discovery helps drive traffic to your site, your Offer endpoint will become a landing page for new users. Make sure your Offer page is informative and has some useful context for first time visitors. If you require authentication, make sure there's a sensible, encouraging experience for someone who doesn't have an account, don't just bounce them to an empty login form. What does your service do? Why should they register? Treat your Offer endpoint like you'd treat any other primary landing page, optimize for bounce rate, etc.

Test your service:  Log out of your site, if appropriate, and share to it using the Offer Test Harness. Will your page make sense to a new user?

Preserve URL parameters through the login process

It's common for users to be redirected when they hit your offer endpoint (to perform authentication, for example) before they can do something useful with the shared content. Make sure that all of the content parameters are passed through each step in the flow, otherwise the shared content can get dropped and your user will be stranded. Preferably, you'll preserve the original offer url, intact, and redirect the user there once they've authenticated. this is a simple enough task from a development perspective but something that often gets overlooked (and frequently broken by even very large service providers).

Test your service:  Log out of your site, if appropriate, and share to it using the Offer Test Harness. Once you've landed on your share page (logging in if necessary), make sure that all of the OExchange parameters you support made it through. If you have a form, make sure the fields are correctly populated.

Check your URL encoding and decoding

Make sure you preserve URL encoding when passing parameters around within your site, over-decoding can cause shared URLs to be stripped of their parameters. For example, if I was to share to your site it might look like this:

If you redirect the user through your login page and don't preserve the url encoding, you could end up with this mess:

Most websites will interpret this with the "b=2" parameter belonging to the outer "" url, stripping it from the "" url that was shared. Similarly, make sure you use proper escaping on HTML pages (watch those &'s) and make sure you can handle UTF-8 content.

Test your service:  Share an URL with parameters to your site using the Offer Test Harness. Enter your offer endpoint, click through to your site and submit your form (if applicable). Verify that the url that you received kept the "" parameters intact and that they weren't stripped anywhere in the workflow.

Don't resize the browser window

OExchange offers will typically open your endpoint in a new tab in an existing browser window. Don't use any code that will resize the window, as this could affect the whole browser and be disruptive to the user experience and other sites the user may be browsing. Please consider your whole sharing and authentication workflow; some sites have login forms and bookmarklet-launched sharing pages that resize because they expect to be displayed in a popup.