Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

'persistent' ap_id after first click

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › 'persistent' ap_id after first click

Tagged: affiliate id, cookie, session

  • This topic has 4 replies, 2 voices, and was last updated 14 years, 3 months ago by amin007.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 10, 2011 at 1:40 am #2900
    sparkit
    Member

    hi, i am trying to figure out a relatively simple way to track users and was wondering if you have suggestions.

    basically if an affiliate gives out a link to a particular signup page and the end user fills the form in, all is great: tracking is done and all are happy.

    however, users are users: sometimes they might navigate somewhere else and then go back to the signup page, however the tracking code is lost at this point. i have looked into the option of creating cookies, but i’m wondering whether the plugin already uses some session monitoing to keep hold of the tracking and therefore i don’t actually need to reinvent the wheel, just access the right cookie or session variable…

    any useful suggestion will be very welcome!

    March 10, 2011 at 2:11 am #30006
    amin007
    Participant

    Once the user land on the signup page the affiliate plugin will drop a cookie. At this point the user can go to other pages but the tracking will still happen.

    March 10, 2011 at 10:59 am #30007
    sparkit
    Member

    thanks for confirming this as it was what i understood the plugin was going to do, however it doesn’t seem to be what the plugin actually does (note i have the latest version of WP 3.1 and the latest version of the plugin).

    can you please tell me where the cookie is set? i can then run a few checks to see where the info is lost and give you more debugging info.

    the reason why i am asking is that it doesn’t look from the admin table nor the affiliate side that all clicks are registered (as i thought it would happen)

    a separate ‘display’ question is: am i right in believing that the last 20 clicks that affiliates can see only include the ‘direct’ refererrals? (i’m assuming not, but what i observe is the consequence of missing recorded clicks)

    i have looked at the actual database and it looks to me like only the first click is recorded, not all clicktrhough. at this point this is an unexpected problem

    thanks!

    March 10, 2011 at 6:54 pm #30008
    sparkit
    Member

    i know we are on a different timezone so you will probably get to my message at some point later. in the meantime, i thought to let you know that i have used a workaround to ‘rewrite’ all links with javascript. so if there is an ap_id in the url i use that to attach it as parameter to all links when the page loads, otherwise a default affiliate_id is used.

    this is quite simple yet nifty as basically no code change is required from the plugin side. the js is embedded in the header of the theme and all is done!

    March 11, 2011 at 4:43 am #30009
    amin007
    Participant

    FYI – The value is stored in a cookie variable named “ap_id”. All you gotta do is check the cookie value as you browse different pages and see where it gets lost.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ