1 parent 600cfdc commit 6ef3ab1Copy full SHA for 6ef3ab1
1 file changed
src/js/tracker.js
@@ -1229,9 +1229,15 @@
1229
* Log visit to this page
1230
*
1231
* @param string customTitle
1232
+ * @param boolean DEPRECATED performanceTiming
1233
* @param object Custom context relating to the event
1234
*/
- trackPageView: function (customTitle, context) {
1235
+ trackPageView: function (customTitle, performanceTiming, context) {
1236
+ if (performanceTiming !== true && performanceTiming !== false) {
1237
+ context = context || performanceTiming;
1238
+ } else {
1239
+ helpers.warn('The performanceTiming argument to trackPageView is deprecated. Instead use the "contexts" field in the argmap argument of newTracker.');
1240
+ }
1241
trackCallback(function () {
1242
logPageView(customTitle, context);
1243
});
0 commit comments