Skip to content

Commit

Permalink
add pageview event (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz authored Nov 30, 2021
1 parent cbfc1a4 commit 32c0818
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions website/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module.exports = {
}return r._iq[e]};e.amplitude=r})(window,document);
amplitude.getInstance().init(${API_KEY});
amplitude.logEvent("pageview", { path: window.location.href })
`
: "",
},
Expand Down
3 changes: 2 additions & 1 deletion website/landing/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ e=(!e||e.length===0?"$default_instance":e).toLowerCase()
;if(!Object.prototype.hasOwnProperty.call(r._iq,e)){r._iq[e]={_q:[]};v(r._iq[e])
}return r._iq[e]};e.amplitude=r})(window,document);
amplitude.getInstance().init(${API_KEY});`,
amplitude.getInstance().init(${API_KEY});
amplitude.logEvent("pageview", { path: window.location.href })`,
}}
id="foo"
/>
Expand Down
2 changes: 1 addition & 1 deletion website/landing/website.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"text": "powered by"
},
"commands": {
"import": "import { Sandpack } from \"@codesandbox/sandpack-react\";",
"import": "import { Sandpack } from \"@codesandbox/sandpack-react\"",
"install": "npm install @codesandbox/sandpack-react"
},
"resources": [
Expand Down

0 comments on commit 32c0818

Please sign in to comment.