Opened 4 years ago

Closed 4 years ago

#1179 closed Bug (fixed)

Javascript API should have trackPageView( title )

Reported by: matt Owned by:
Priority: critical Milestone: Piwik 0.5.5
Component: Core Keywords:
Cc: Sensitive: no

Description (last modified by matt)

The current JS Tracking API is missing an easy way to dynamically record a page view with a custom title.

Currently, one can do

onClick on a photo {
  tracker.setDocumentTitle ("clic photo");
  tracker.trackPageView();

when a click is made on a photo eg.

He would then also have the standard Javascript tracker in the footer to record the call.

Instead, one should be able to do

onClick on a photo {
  tracker.trackPageView(title);
}

This title would overwrite other titles set by calling setDocumentTitle() previous to this call.

Attachments (1)

piwik-1179.patch (900 bytes) - added by pebosi 4 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 4 years ago by matt (mattab)

  • Description modified (diff)

Changed 4 years ago by pebosi

comment:2 Changed 4 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [1879]) fixes #1179 - add trackPageView(customTitle) to JavaScript API

Note: See TracTickets for help on using tickets.