Recent Topics

Goals tab in b2evo 3.x

Thread started by , Thu Feb 5, 2009 23:31 – Last touched: Thu Feb 5, 2009 23:31
Started by , 02/5/09

Feb 5, 2009 23:31    

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

Comment from:

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.

02/06/09 @ 12:31

Comment from:

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

02/06/09 @ 13:37

Comment from:

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

¥

02/06/09 @ 18:21

Comment from:

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.

09/24/09 @ 17:00

Comment from:

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

¥

09/25/09 @ 18:52

Comment from:

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 .

09/25/09 @ 19:36

Comment from:

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.

¥

09/25/09 @ 20:01

Comment from:

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?

03/17/10 @ 13:37

Comment from:

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.

03/17/10 @ 19:55

Comment from:

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.

03/17/10 @ 19:57

Comment from:

Do you mean this?

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

to something else?

03/17/10 @ 20:04

Comment from:

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

03/17/10 @ 20:10

Comment from:

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

Code

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

Code

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
03/17/10 @ 21:05

Comment from:

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

This is my current .htaccess setup:

Code

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.

03/17/10 @ 21:12

Comment from:

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"

03/17/10 @ 21:30

Comment from:

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.

03/17/10 @ 21:36

Comment from:

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.

03/17/10 @ 21:41

Comment from:

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

03/17/10 @ 22:02

Comment from:

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

03/17/10 @ 23:10

Comment from:

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!

03/17/10 @ 23:34

Comment from:

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

07/20/12 @ 13:50
powered by b2evolution free blog software – This forum is powered by b2evolution CMS, a complete engine for your website.