Recent Topics

1 Feb 05, 2009 23:31    

Does anyone know what are these 'goals' for? 8|

2 Feb 06, 2009 12:31

I haven't played with it yet so I can't say for sure, but once upon a time fplanque mentioned how he had a goal of getting sam2kb to ask questions about tabs ;)

OR

Kinda probably like "workflow" and "post type" used to be: there because going forward fplanque has a plan of some sort so laying bits of ground work happens.

3 Feb 06, 2009 13:37

In Google Analytics you can set up goals which are basically urls that you want people to visit.

For example - if I wanted people to sign up to my newsletter the goal url would be my 'Thanks for signing up' page. In GA you can also specify a series of pages leading up to to the Goal URL like home page -> signup page -> goal url

Not sure if it is the same thing here as there are fields like key and redirection url etc

4 Feb 06, 2009 18:18

Thank you guys, I think we should wait for official report from fplanque :)

5 Feb 06, 2009 18:21

EdB wrote:

I haven't played with it yet so I can't say for sure, but once upon a time fplanque mentioned how he had a goal of getting sam2kb to ask questions about tabs ;)

OR

Kinda probably like "workflow" and "post type" used to be: there because going forward fplanque has a plan of some sort so laying bits of ground work happens.

The french are twisted, it'll have been to get sam2kb to make a post :D

¥

6 Sep 24, 2009 16:30

I still don't know how to use goals :)

7 Sep 24, 2009 17:00

Walter wrote:

I still don't know how to use goals :)

You set them up at opposite ends of a long field, then everyone tries to kick the ball into the other group's goooooooooal.

8 Sep 24, 2009 19:10

Isn't that "soccer"? :|

¥

10 Sep 24, 2009 23:03

That makes sense, thanks fplanque

11 Sep 25, 2009 18:10

That makes a lot of sense.

12 Sep 25, 2009 18:52

Spammers will love you .... could I possibly convince you to make that a javascript thing ... most *real* visitors have it enabled ... apart from the fact that you can remove the need for redirects ... which is annoying to people like me who have to manually allow 3rd party redirects, it also won't detract any link love I decide to give and it'd stop spammers setting up their own tinyurls to third parties

¥

13 Sep 25, 2009 19:36

No matter what, the part that writes to the DB to count clicks can't be a "javascript thing".

Now, regarding the way the tracking script is called, do you actually mean something like <a href="..." onclick="track('key')"> ?

Sounds good to me. You are welcome to add a generic JS wrapper liek this (maybe into functions.js) and document it in the manual as a third way to call track.php .

14 Sep 25, 2009 20:01

Agreed, you need a server language.

Urm, almost, you have a js that adds the onclick to tracked uri's. Basically, it delays the click for about 1/2 a sec, adds an <img>/<js>/<whatever> call to the page that calls tracker ( needs to ignore "client just died" though ) ... works with most (real) clients.

I'd rather wait until the core became a tad leaner before I bloated it with my own code.

¥

15 Mar 17, 2010 13:37

I like the goals functionality and regularly use it though I'm now running into the problem of having too large a table to track all the goals -- as in it is very wide on my goals stats page.

Is there a way to make the goals links canonical?

16 Mar 17, 2010 19:27

What do you mean with "canonical" ?

17 Mar 17, 2010 19:55

I guess I just mean "pretty" say something like this:

http://yoursite.com/goto/[the goal key]

I'll say that the one-two punch of a fully functional auto links plugin with a robust goal system would make for a powerful professional blogging combo -- both massive affiliate link capability and intersite linkability.

Not unlike this plugin http://www.mbpninjaaffiliate.com/ for wordpress.

18 Mar 17, 2010 19:57

That is very easy, just move track.php to the root of your blog and rename it goto.php.

Also edit the include path inside of the file.

19 Mar 17, 2010 20:04

Do you mean this?

require_once dirname(__FILE__).'/../conf/_config.php';

to something else?

20 Mar 17, 2010 20:10

Yes, if you move the file up one folder, then you have to remove '/..' .

22 Mar 17, 2010 21:05

To get rid of .php add the following two lines in your .htaccess

RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule ^(filename)(/.*)?$  $1.php


Replace 'filename' with whatever file name you chose for former tracker.php

The result code should look similar to this

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule ^(filename)(/.*)?$  $1.php

# CATCH EVERYTHING INTO B2EVO:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^  index.php

23 Mar 17, 2010 21:12

So would you do the .htaccess mod in conjunction with moving the file per Francois?

This is my current .htaccess setup:

RewriteEngine On

# Redirect anything that's not an existing directory or file to index.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^  index.php

# PHP SECURITY:
# this will make register globals off in the evo directory
<IfModule mod_php4.c>
	php_flag register_globals off
</IfModule>
<IfModule mod_php5.c>
	php_flag register_globals off
</IfModule>

# DEFAULT DOCUMENT TO DISPLAY:
# this will select the default blog template to be displayed
# if the URL is just .../blogs/
<IfModule mod_dir.c>
	DirectoryIndex index.php index.html
</IfModule>

Would the end result here make a link like blahblah.com/goto/key=[goal key] ?

Also, is there anyway to automagically redirect all the old goal links to the new goal links via .htaccess?

Finally, is there an .htaccess way to make the paged links pretty? For example, change this:

http://birthdayshoes.com/?blog=1&paged=5

To

http://birthdayshoes.com/page/5/ or somesuch.

24 Mar 17, 2010 21:30

Do what Francois wrote, then do what I wrote. This will let you use track links like blahblah.com/goto?key=[goal key]
To make it work without "?" like blahblah.com/goto/key=[goal key] you need to hack the track.php , I can help you with this once you get it working the simple way.

To make clean b2evo urls like ...yshoes.com/page/5/ go to Blog setting > Urls tab, change blog base url to 'absolute' and type something like ...shoes.com/my-blog/ (note the slash at the end)

Then change all settings below an the same page to use "extra path" instead of "params"

25 Mar 17, 2010 21:36

Thanks Sam --- will have to figure out how to tackle the track.php and simultaneously change all the existing links (or at least know where they are all to change them after implementing the fix).

Re: pretty urls -- I actually already use absolute (everything is just at ...shoe.com/the-url ... and using all extra-path stuff on the URLs page. But still pages are using the params I guess.

26 Mar 17, 2010 21:41

NealO wrote:

Re: pretty urls -- I actually already use absolute (everything is just at ...shoe.com/the-url ... and using all extra-path stuff on the URLs page. But still pages are using the params I guess.

Make sure you set [u]everything[/u] to extra path.

30 Mar 17, 2010 22:02

Paged links are different, they always have params, you can't change them

31 Mar 17, 2010 23:10

A couple of remarks:

- it would actually be possible to have a rewrite rule that chnages /goto/abc to /htsrv/track.php?key=abc - I can't write that from the top of my head through :/

- it is possible to keep the old tracj.php in place in addition to having it under a different name somewhere else. that way you make sure old urls never fail.

- I will integrate /goto/abc syntax directly into b2evolution in the future. It is on the todo list but don't count on it too soon, there are a lot of other things to be done first ;p

32 Mar 17, 2010 23:34

I will take a stab at doing this goto thing via a goto.php and a track.php with the intention of phasing out track.php.

Know you're busy and got a ton on your plate, so I'll just work with what we've got for now!

33 Jul 20, 2012 13:50

I just know how to create goal but really why we do I didn't find proper answer..


Form is loading...