Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. Track traffic sources using PHP get?

Track traffic sources using PHP get?

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
phpcomsalestutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    weinerschizel
    wrote on last edited by
    #1

    I'm trying to implement a simple tracking ID in my Wordpress theme. It would work like this, I put links out on the internet including a get parameter as follows: http://www.mywebsite.com?track\_id=myid When visitor travels to my site through the link it latches the track_id as they click through the site and doesn't release the id until they leave. At any given point in the visitor's session I want to look up which affiliate referred them to my site so if the visitor buys anything I can track my sales and which traffic sources and or affiliates are working out the best. It seems pretty simple but I cannot figure out how to latch the tracking ID to a visitors session on the site.... Anybody know??? Thanks!!!!

    G D 2 Replies Last reply
    0
    • W weinerschizel

      I'm trying to implement a simple tracking ID in my Wordpress theme. It would work like this, I put links out on the internet including a get parameter as follows: http://www.mywebsite.com?track\_id=myid When visitor travels to my site through the link it latches the track_id as they click through the site and doesn't release the id until they leave. At any given point in the visitor's session I want to look up which affiliate referred them to my site so if the visitor buys anything I can track my sales and which traffic sources and or affiliates are working out the best. It seems pretty simple but I cannot figure out how to latch the tracking ID to a visitors session on the site.... Anybody know??? Thanks!!!!

      G Offline
      G Offline
      GregStevens
      wrote on last edited by
      #2

      Would simply using PHP's built-in session handling be sufficient for your purposes? see, e.g., http://www.tizag.com/phpT/phpsessions.php[^] If not, let me know exactly why not and maybe we can come up with an alternative idea.

      --Greg

      1 Reply Last reply
      0
      • W weinerschizel

        I'm trying to implement a simple tracking ID in my Wordpress theme. It would work like this, I put links out on the internet including a get parameter as follows: http://www.mywebsite.com?track\_id=myid When visitor travels to my site through the link it latches the track_id as they click through the site and doesn't release the id until they leave. At any given point in the visitor's session I want to look up which affiliate referred them to my site so if the visitor buys anything I can track my sales and which traffic sources and or affiliates are working out the best. It seems pretty simple but I cannot figure out how to latch the tracking ID to a visitors session on the site.... Anybody know??? Thanks!!!!

        D Offline
        D Offline
        DLChambers
        wrote on last edited by
        #3

        You could use a session cookie then retrieve the value from $_COOKIE as they move thru the site.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups