MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= PC, Desktop and Laptop Support =---------- > Software
Register FAQ Members List Calendar Casino Mark Forums Read

Software Software such as operating systems like Windows XP, Windows Vista, Windows 7 etc., or specific programs.


Reply
 
Thread Tools Display Modes
  #1  
Old 07-05-07, 08:22
mezziG's Avatar
mezziG mezziG is offline
Private E-2
 
Join Date: Jul 2007
Location: Sydney, Australia
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default tracking codes

Hi guys, I've been searching for an answer to this question for ages. Hopefully someone here can help or point me in the direction of someone/where that can.

I have a website that I use for business. I want to be able to track people who come in. I have a tracking code from google that works really well if they click on the ad and then stay on the one page but often they click on the ad, arrive at the page where they're tracked and then actually sign up for something on a different page of my website and so I lose the tracking ID of how they came.

Does anyone know of a code that I can use to track people around my website once they are in so I keep the tracking ID they were given when they arrived? I'm pretty new to coding so please explain any answers step by step for the slow learner. Ta.

I will be so to find a solution to this. I've been asking for around 6 months now.

mezz
Reply With Quote
Sponsored links
  #2  
Old 07-05-07, 09:36
Kodo's Avatar
Kodo Kodo is offline
SNATCHSQUATCH
 
Join Date: Jan 2002
Location: Syracuse NY, USA
Posts: 11,502
Thanks: 17
Thanked 72 Times in 49 Posts
Default Re: tracking codes

wow.. 6 months and no solution?
well.. lucky day be yours..BAM!

once they come to your site.. you most likely have a url that a referring ID in it.. you can use a bit of code to grab that referring id from what is called the "query string". Once you have that.. you just slap that into a cookie.. and bamo.. anytime you need to that ref id, you just request it from the cookie. All done..

how you go about doing this (programming wise) depends on the platform you are using for your site..
__________________
"The American people will never knowingly adopt Socialism..." -Norman Thomas
Reply With Quote
  #3  
Old 07-05-07, 19:58
mezziG's Avatar
mezziG mezziG is offline
Private E-2
 
Join Date: Jul 2007
Location: Sydney, Australia
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: tracking codes

Ok What is the query string and how do I get to it.

I was given some cookie tracking code before but it did nothing so.....

I'm using php files.

next step please
__________________
visit my website http://www.soulscapeartistry.com.au
Reply With Quote
  #4  
Old 07-06-07, 02:01
Kodo's Avatar
Kodo Kodo is offline
SNATCHSQUATCH
 
Join Date: Jan 2002
Location: Syracuse NY, USA
Posts: 11,502
Thanks: 17
Thanked 72 Times in 49 Posts
Default Re: tracking codes

http://discomoose.org/2005/10/19/how...string-in-php/
__________________
"The American people will never knowingly adopt Socialism..." -Norman Thomas
Reply With Quote
  #5  
Old 07-07-07, 07:17
mezziG's Avatar
mezziG mezziG is offline
Private E-2
 
Join Date: Jul 2007
Location: Sydney, Australia
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: tracking codes

Alright so I read the link. Not sure I fully understand so here goes.

My need....

Surfer clicks on my ad in google and gets taken to my landing page with an ID. When on that page he thinks my offer is good and clicks on the button provided to sign up. Where do I put the string in the button coding and will either of these work?

<?php
$kid = $_GET["kid"];
$keyword = $_GET["keyword"];
$actual_keyword = $_GET["actual_keyword"];
require_once("site_config.php");
?>


<?php
$kid = $_GET["kid"];
require_once("site_config.php");
?>

Also. A surfer clicks on my ad in google, gets taken to my landing page with ID. In the menu sees another page that he thinks he'd like to check out and clicks on the menu button. where do I put the string so I can follow him from landing page to next visited page?

one wants to know. Please keep helping.

mezz
__________________
visit my website http://www.soulscapeartistry.com.au
Reply With Quote
Sponsored links
  #6  
Old 07-11-07, 00:37
mezziG's Avatar
mezziG mezziG is offline
Private E-2
 
Join Date: Jul 2007
Location: Sydney, Australia
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: tracking codes

oh come on, this can't be too hard surely. This is where I end with everyone else too.
__________________
visit my website http://www.soulscapeartistry.com.au
Reply With Quote
  #7  
Old 07-11-07, 13:20
Kodo's Avatar
Kodo Kodo is offline
SNATCHSQUATCH
 
Join Date: Jan 2002
Location: Syracuse NY, USA
Posts: 11,502
Thanks: 17
Thanked 72 Times in 49 Posts
Default Re: tracking codes

assuming $kid is your tracking id .. then you need to set a cookie or session variable with that value. Then from ANY page in your site, you just need to access the cookie or session and retrieve that value to store with your transactions.

I can't help you with PHP.. I don't know the language well enough so I can only drop you conceptual info.

So. Person 1 clicks on ad link on some other site..
Person1 ends up on your site with a tracking id in the URL
PHP page grabs trackingID from url
PHP page puts value into session or cookie
value is retrieved from session or cookie when needed.
__________________
"The American people will never knowingly adopt Socialism..." -Norman Thomas
Reply With Quote
  #8  
Old 07-12-07, 09:25
mezziG's Avatar
mezziG mezziG is offline
Private E-2
 
Join Date: Jul 2007
Location: Sydney, Australia
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: tracking codes

Ok, so let's assume that the php is correct. How do I get the tracking code into the URL? (or is that just what happens from the code in the google ad?)

What is the cookie coding that I need and where and how do I make it work? Coz I've been given help with that before and it hasn't helped me.

mezz
__________________
visit my website http://www.soulscapeartistry.com.au
Reply With Quote
  #9  
Old 07-12-07, 22:24
Kodo's Avatar
Kodo Kodo is offline
SNATCHSQUATCH
 
Join Date: Jan 2002
Location: Syracuse NY, USA
Posts: 11,502
Thanks: 17
Thanked 72 Times in 49 Posts
Default Re: tracking codes

yeah, the tracking code is typically attached to the google ad and when they click on it, they end up on your site with that code in the querystring.

Probably easier to store it in a session:
http://www.w3schools.com/php/php_sessions.asp
__________________
"The American people will never knowingly adopt Socialism..." -Norman Thomas
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Zip codes Lev The Lounge 23 11-30-06 18:03
Help with pop ups and error codes Taraj Software 26 04-25-05 14:40
Looking for access codes alexis3269 Software 8 03-09-05 07:54
T-Shirt Tracking Thread. That's right. Post yer tracking data right here!!! Robster12 The Lounge 9 07-21-04 11:32
Tracking JamesWRMJ Software 7 01-12-04 07:53


All times are GMT -5. The time now is 23:14.

MajorGeeks.Com Menu

MajorGeeks.Com \ All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ NEW! PC Games \ System Tools \ Macintosh \ Demonews.Com \ Top Downloads

MajorGeeks.Com \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds


Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger