Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 1c2eafe

Browse files
fix(page): not set page fired when using custom pageviewTemplate
closes #124
1 parent 80576a8 commit 1c2eafe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/page.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default function page (...args) {
4343
set('page', path)
4444
query('send', 'pageview')
4545
} else {
46+
set('page', args[0].page)
4647
query('send', 'pageview', ...args)
4748
}
4849
}

0 commit comments

Comments
 (0)