File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## [ 0.1.4] ( https://github.com/analyticsjs/web-analytics/compare/core@0.1.3...core@0.1.4 ) (2023-06-25)
2+
3+
4+ ### Bug Fixes
5+
6+ * ** core:** fix debug log error for loadSdk ([ 757068c] ( https://github.com/analyticsjs/web-analytics/commit/757068c35cfea6c5fd56981e77dadd602e86aea9 ) )
7+
8+
9+
110## [ 0.1.3] ( https://github.com/analyticsjs/web-analytics/compare/core@0.1.2...core@0.1.3 ) (2023-06-23)
211
312
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export class Analytics<P extends Platform = Platform> extends BaseAnalytics {
5959 this . sdkInstance . push ( [
6060 SDK_ACTIONS . trackPageview ,
6161 formatPageUrl ( pageUrl ) ,
62- formatFromUrl ( fromUrl ) ,
62+ fromUrl ? formatFromUrl ( fromUrl ) : '' ,
6363 ] )
6464 break
6565 }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export function getDebugMessage({
4141 const { pageUrl, fromUrl } = args [ 0 ] || { }
4242 debugLogs . push ( `track pageview done.` )
4343 debugLogs . push ( `pageUrl: ${ formatPageUrl ( pageUrl ) } ` )
44- if ( platform === 'cnzz' ) {
44+ if ( platform === 'cnzz' && fromUrl ) {
4545 debugLogs . push ( `fromUrl: ${ formatPageUrl ( fromUrl ) } ` )
4646 }
4747 break
You can’t perform that action at this time.
0 commit comments