Update or Rewrite a WordPress Plugin
Bajet $30-250 USD
Hello,
I'm currently using WordPress and ClickBank to sell my products.
Basically, affiliates will send traffic to a URL like
[url removed, login to view]
I'd like to create a plugin to capture variables contained in the URL for any page/post, save the data (cookie & php session & maybe another mechanism you can suggest). (The goal is to track the visitor accross several visits of our website. From what I understand, cookie are saved on the client and php sessions are saved on the server. So php sessions should be used as a fallback when cookies are disabled.) Then I should be able to retrieve those saved variables later.
Let's go into deeper details
---
Part A of the plugin will read and save tracking variables for at least 60 days.
If there is nothing wrong against making it a one year cookie/session, let's do this instead.
Default variables names to capture are 'hop', 'tid', 'vtid' but I'd like to be able to add more easily through the plugin settings.
---
Part B of the plugin will allow me to reinject those variables manually with a shortcode in my page/post content to craft new URLs.
For instance, a visitor comes to my site with the following link :
[url removed, login to view]
I should be able to write in my page content :
<a href="http://[shortcodeName hop].vendor.hop.clickbank.net&tid=[shortcodeName tid]">Click Here !</a>
Final output should be :
<a href="http://myAffiliate.vendor.hop.clickbank.net&tid=myTracking">Click Here </a>
Shortcode should be able to handle both default variables (hop,tid,vtid) and the one added through the plugin settings.
---
Part C of the plugin will automatically analyze content of the page/post with add_filter('the_content','our_function').
Everytime a href URL points to my domain name ([url removed, login to view]), our_function should append at the end of this URL every variables saved.
For instance, if a visitor comes to my site with the following link :
[url removed, login to view]
And my page content is
<a href="[url removed, login to view]">Click Here !</a>
<a href="[url removed, login to view]">Or Here !</a>
Final output should be :
<a href="[url removed, login to view]">Click Here !</a>
<a href="[url removed, login to view]">Or Here !</a>
Keep in mind that href URLs may already have variables appended so you need to check if the ? is needed or not when crafting the new URL.
I've attached a plugin draft you can update or just read as a reference.
Regarding my needs, this current plugin lacks :
- Default variable names to capture : 'hop', 'tid', 'vtid' (not set in install()function)
- No shortcodes implemented
- Should store and restore data through php session too (fallback if cookie disabled)
- Regarding Part C, output is wrong when URL contains folders ([url removed, login to view] instead of [url removed, login to view])
Let me know how much it would cost for a first quick&dirty version
including code ownership.
Let me know if you have questions, I'd be glad to explain with more
details so that we understand each other.
Regards,
Allan
Dianugerahkan kepada:
Hi, I have something ready to base this upon. I am sending you a message in a second. Cordialement, Eko