setCustomUrl() support for relative URLs
|Reported by:||hass||Owned by:|
I'm using setCustomUrl() to fire a friendly URL from Drupal module into Piwik database for SiteSearch, but I still have issues and it's not working. I'd like to make sure that I'm doing everything correctly and the documentation of setCustomUrl() is not clear to me.
Can someone please explain me if the URL need to be absolute or relative and if relative is also possible if the leading slash may need to be removed?
Can you confirm if the following would be correct or what is incorrect, please?
_paq.push(["setCustomUrl", "http://www.example.com/drupal7/search?query=foo"]); _paq.push(["setCustomUrl", "drupal7/search?query=foo"]); _paq.push(["setCustomUrl", "/drupal7/search?query=foo"]);
I'd also need to know if setDocumentTitle():
_paq.push(["setDocumentTitle", "My document title"]);'
can be used together with setCustomUrl():
_paq.push(["setCustomUrl", "drupal7/search?query=foo"]); _paq.push(["setDocumentTitle", "My search result title"]);'
or if need to expect issues if both are used together.
Change History (7)
comment:6 Changed 3 years ago by vipsoft (robocoder)
- Resolution set to fixed
- Status changed from new to closed