Problem with the Permalink Structure


(gilly) #1

Hi, it’s me again style_emoticons/<#EMO_DIR#>/laugh.gif

My question this time is the following.

I’m monitoring 2 Blogs with Piwik. Both of them use Permalinks.

Link format from Blog1: http://domain.com/funnyposthere/2009/01/23 - Everything is fine here.

Link format from Blog2: http://domain.com/2009/01/23/funnyposthere/

The Problem is here, that it’s really circumstantial to see, on what page the visitors come.

Please take a look at the screenshot added to this post.

Is it possible to just show the link witout the seperation of 2008 / 08 / 22 and klick through to see, which pages where visited?


(pebosi) #2

you can set names for pages using javascript variable “piwik_action_name”

example: piwik_action_name = document.title;
sets title of document for page actions

regards


(gilly) #3

[quote=pebosi @ Jan 23 2009, 08:05 PM]you can set names for pages using javascript variable “piwik_action_name”

example: piwik_action_name = document.title;
sets title of document for page actions

regards[/quote]

Thank you so far, I found the “piwik_action_name” variable in several files and changed it to document.title but that has absolutely no effect, i still see the links grouped by year/month etc… isn’t it possible to have list with links of the pages the people landet on?


(pebosi) #4

you should only set the variable “piwik_action_name” in the javascript tracking code, not in piwik core-files.

regards


(gilly) #5

Thank you, but that doesn’t do the trick, the pages widget now only shows /document.title

[attachment=10:pages.jpg]

I recovered the backup files, I made before my changes at them. So my Piwik is now again as it was without the above mentioned code changes.

The Javascript Code looks now like this:

<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://stats.gilly.ws/" : "http://stats.gilly.ws/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
piwik_action_name = 'document.title';
piwik_idsite = 1;
piwik_url = pkBaseURL + "piwik.php";
piwik_log(piwik_action_name, piwik_idsite, piwik_url);
</script>
<object><noscript><p>Open source analytics <img src="http://stats.gilly.ws/piwik.php?idsite=1" style="border:0" alt=""/></p></noscript></object></a>
<!-- End Piwik Tag --

(pebosi) #6

dont use single quotes, just

piwik_action_name = document.title;

regards


(marseillais) #7

Ciao tutti.

Gilly asked 2 questions.

First one about changing what is written on the ‘pages’ section. Pebosi has given the correct answer.

But there is an other question : is it possible to create a link on the pages who would open the link in a new window ?

The answer interests me a lot !!!