Adding multiple URLs / Track one folder separately

Hi,

New Piwik user here and like the flexibility and self host option as compared to GA.

I was wondering what is the purpose of adding multiple URLs for the same ID? If I added http://domain.com[/url], I understand that Piwik will track all pages with tracking code within the domain.com. Is it necessary to add URLs such as http://domain.com/page1.html [url=http://domain.com/page2.html]http://domain.com/page2.html etc?

One potentially related question, can I track one folder within the website separately? I’ve created a folder within my normal websites for the specific purpose of sending PPC (Adwords) traffic to (e.g. domain.com/ppc/). Now the traffic of that specific folder is only coming from the PPC advertisement. The rest of the website (root and other folders) are for normal content and I would like to track them as well but separate from the ppc folder. How can I do this in Piwik?

Thanks in advance.

Mike

Refer to the javascript tracking api.

You might consider using different site IDs.

You may also consider using the piwik_link class to force links between your main site and special folder to be treated as outlinks.

vipsoft,
Thanks for your pointer. I will setup 2 separate site ID for the normal page and the special folder page. I will also use this example to link them together.

<a href='http://mysite.com/partner/' class=’piwik_link’>Link I want to track as an outlink</a>

About my earlier question, I’m curious about when will someone enter multiple URLs (for the same site id) instead of only the root url?

Mike

[quote=vipsoft @ May 23 2009, 09:00 PM]Refer to the javascript tracking api.

You might consider using different site IDs.

You may also consider using the piwik_link class to force links between your main site and special folder to be treated as outlinks.[/quote]

It depends on your crafting of URLs in your website, host, web server configuration, domain names, …

Here’s one example.

Let’s say my website uses absolute URLs (prefixed by http://) even for internal links. If my website is reachable as ici.ca, www.ici.ca, ici.viphosting.ca, and viphosting.ca/ici/, then I would probably use a host alias so my internal links don’t show up as outlinks.

A less obvious example would be where you use relative URLs (not prefixed by http://) for your internal links but use the tag.

vipsoft,

Thanks for your explanation. I will need to dig deeper into Piwik to learn more about what it can do.

Mike