Updating log_visit table


(Anita) #1

hi

wen does the visitors entry gets added in the log_visit table and in wic file the insert query for this entry is present? style_emoticons/<#EMO_DIR#>/unsure.gif

i have a new field in that table wic i want to b added wen the visitor details are saved. shd i update the query in my plugin or shd i add the field in the array while inserting it while tracking is done.

Thanks in advance


(Matthieu Aubry) #2

What do you mean by “wic”?
please don’t use SMS style on the forum


(Anita) #3

sorry!!

hi

when does the visitors entry gets added in the log_visit table and in which file the insert query for this entry is present?

i have a new field in that table which i want to be added when the visitor details are saved. should i update the query in my plugin or should i add the field in the array while inserting it while tracking is done.

Thanks in advance


(Matthieu Aubry) #4

look at the example of the Provider plugin which sets the provider field in the log_visit table during tracking: http://dev.piwik.org/trac/browser/trunk/pl…ovider.php#L112