mysql - PHP Conversion Tracking -


i have 3 pages trying "track" speak. signup process 3 pages. basically, i'm not wanting count hits out of sequence (ie. if user checks thank page (3rd page)) don't want count conversion again.

so 1. user enters landing page +1 hit 2. user enters intermediary page +1hit 3. user enters thank page +1 conversion

i know how increment count pretty easy hits, unsure how "not" count if out of sequence.

you set session variable on page 1 set '1', page 2 = '2' , on, set variable if less current page number, so:

session_start(); if($_session['cur-page'] < [current page number]) {     $_session['cur-page'] = [current page number];     loghit(); } 

where loghit() tracks page hit.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -