track exits still broken

Found a bug? Tell us!!
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

track exits still broken

Post by Timbalu »

Hi Garvin

there must be still some sort of bug in tracking entries and exits, even with new snapshots s9y_200408171337.
Mine aren´t working :-(

T.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: track exits still broken

Post by garvinhicking »

To which bug are you referring to? What is happening?

Need more input, so to say :-)
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Post by Timbalu »

They don´t appear in Top Referrer and Top Exits list.
Maybe one of last changes in functions.inc ist not listing outgoing and incoming links correctly!?
T.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Timbalu wrote:They don´t appear in Top Referrer and Top Exits list.
Maybe one of last changes in functions.inc ist not listing outgoing and incoming links correctly!?
T.
The track exits plugin has nothing to do with the Top Referrers...only the click-counting should show up for trackexits.

Do the links you create for entries get translated to exit.php?blabla correctly? What are the settings for your track exits plugin? What is your configuration setting for the "Make external links clickable?" option? What's your Blog URL so I can have a look at it?
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Post by Timbalu »

garvinhicking wrote:Do the links you create for entries get translated to exit.php?blabla correctly? What are the settings for your track exits plugin? What is your configuration setting for the "Make external links clickable?" option?
No, they don´t get translated to exit.php. My settings for Referrer and Top Exits Plugin have the NO Click setting set. So it seems the translation to exit.... tonight, I´ll have a deeper look. Maybe I missed some tweaking...
T.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Post by Timbalu »

Hi Garvin

Well, there was light delay, but....
I activated track exits, but this does not really change my problem...
Top referrer is ok, I just did not get any klicks, but the top exits is still a problem. Last entries for this in *_suppress and *_exits tables stopped (20080815..) after changes with the preg_match_all patterns in serendipity_functions.inc.php occured.

Could this be the problem? :

### serendipity_functions.inc.php

2459 function serendipity_handle_references($id, $author, $title, $text)
2460 {
2461 global $serendipity;
2462
2463 - if (!preg_match_all('@<a[^>]+?href\s*=\s*["\']?([^\'" >]+?)[ \'"][^>]*>([^<]*)</a>@i', $text, $matches)) {
2464 - return;
2465 - }
2466
2477 // remove full matches
2478 array_shift($matches);

2463 + preg_match_all('@<a[^>]+?href\s*=\s*["\']?([^\'" >]+?)[ \'"][^>]*>([^<]*)</a>@i', $text, $matches);

Could you please check if this is the correct tweak?

Thanks
T.

PS. I can´t find the function for INSERT INTO {$serendipity['dbPrefix']}exits. Is there any ??? And how does the data gets into the table ???
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Timbalu!

The preg_match_all thing was changed a few days ago to better match the URL. Please try to use the latest CVS/snapshot version.

The exits are, BTW, tracked via the exit.php file. It uses the function serendipity_track_url().

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Post by Timbalu »

Thanks Garvin. I found the function now.

But my problem still is the same. I don´t get any entries in _exits table. I just cannot find out, why?
Definitly there are links like:

Code: Select all

<a href="http://www.somewhere.com/folder/index.php?id=16" target="_blank">go here</a>
in my entries.

The only one working, I just found out is:
<a href="http://www.mozilla.org/products/firefox ... /#download" target="_blank">firefox browser</a>
If have got the latest cvs installed. Thats why I thought it was the changed preg_match_all thing.
It should count, if these links get hit by users - or is this thought wrong?

Sorry for my stumbling clearness.....
T.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Timbalu!

I'd need to have the (frontend only, no admin) URL of your blog so I can look at how your exit encoding looks like. Then I can try to see what's going on :)

(You can also catch me on ICQ #4045240...)
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Post by Timbalu »

Yep, posted a private message. See above.
Thx. T.
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Is there a reason why some exits would be tracked and some not? Most of my exits get tracked but some do not.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Do you have an example article with a link which doesn't get tracked?
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Two examples are on my site at http://www.thecockrells.com dated Nov. 16. One that goes to an article at ktbs.com and the other is at newsmax.com. Neither have worked since I added them last night. It seemed random, like some that didn't work in the past would work one day and not the next so I hated to ask and assumed it was something I did.

Don't laugh at the articles! :lol:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The first entry did not get tracked correctly, because there is a break inside the anchor. I think this was fixed in the recent 0.7 release.

The second link to newsmax however should get tracked fine, right? If not, also here an update to 0.7 may help...

Regards,
Garvin.
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Newsmax still didn't seem to work and another one I added recently didn't either but it's not that big of a deal really. I'm using the version of 7 that came out Oct. the 20th I believe.

Maybe I'll wait on version 8! Any ideas when it will be out?
Post Reply