How to handle affiliate tracking?


#1

I’m looking to use Ghost to host an informational site that will drive revenue through affiliate linking.

I haven’t seen any documentation, integrations, or other forum posts that explicitly deal with link tracking, could someone please provide some basic guidance as to how one would capture link events?

I’d assume that link tracking could be accomplished in one of two ways:

  1. JavaScript in the browser that would send an AJAX request to the Ghost instance to record the client details then set the window.location.href to the affiliate URL.

  2. A server-side redirect that would store the details in the database then send a redirect to the affiliate site using an HTTP 302 or 303 redirection response.

Has anyone done this before? If so, what are the general steps to accomplish this?


closed #2

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.