Skip to content

Commit 195bbb2

Browse files
committed
Provide read-only access to pageViewId (closes snowplow#575)
1 parent 11648cd commit 195bbb2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/js/tracker.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,6 +1458,15 @@
14581458

14591459
return {
14601460

1461+
/**
1462+
* Get the page view ID as generated or provided by mutSnowplowState.pageViewId.
1463+
*
1464+
* @return string Page view ID
1465+
*/
1466+
getPageViewId: function () {
1467+
return getPageViewId();
1468+
},
1469+
14611470
/**
14621471
* Get the current user ID (as set previously
14631472
* with setUserId()).

0 commit comments

Comments
 (0)