Skip to content

Commit 8cdec1e

Browse files
committed
Update
1 parent 9e4a649 commit 8cdec1e

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

lib/data/last-edited.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"pages/docs/guides/migrate-your-app.js": "2018-05-01T02:51:23.474Z",
4242
"pages/docs/guides/redirect.js": "2018-04-30T22:19:29.540Z",
4343
"pages/docs/guides/updating-now-cli.js": "2018-04-30T23:27:45.887Z",
44-
"pages/docs/index.js": "2018-05-02T19:52:55.000Z",
44+
"pages/docs/index.js": "2018-05-02T20:07:01.000Z",
4545
"pages/docs/other/billing.js": "2018-04-30T22:19:29.542Z",
4646
"pages/docs/other/faq.js": "2018-04-30T22:19:29.542Z",
4747
"pages/docs/other/index.js": "2018-04-30T22:19:29.543Z",

pages/_document.js

+22-10
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,30 @@ export default class Document extends Document_ {
2828
<script
2929
dangerouslySetInnerHTML={{
3030
__html: `
31-
var _paq = _paq || [];
32-
_paq.push(['trackPageView']);
33-
_paq.push(['enableLinkTracking']);
34-
(function() {
35-
var u="//next.niltree.com/p/";
36-
_paq.push(['setTrackerUrl', u+'js/']);
37-
_paq.push(['setSiteId', '1']);
38-
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
39-
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'js/'; s.parentNode.insertBefore(g,s);
40-
})();`
31+
var _paq = _paq || [];
32+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
33+
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
34+
_paq.push(["setCookieDomain", "*.niltree.com"]);
35+
_paq.push(['trackPageView']);
36+
_paq.push(['enableLinkTracking']);
37+
(function() {
38+
var u="//next.niltree.com/p/";
39+
_paq.push(['setTrackerUrl', u+'js/']);
40+
_paq.push(['setSiteId', '1']);
41+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
42+
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'js/'; s.parentNode.insertBefore(g,s);
43+
})();`
4144
}}
4245
/>
46+
<noscript>
47+
<p>
48+
<img
49+
src="//next.niltree.com/p/js/?idsite=1&rec=1"
50+
style={{ border: 0 }}
51+
alt=""
52+
/>
53+
</p>
54+
</noscript>
4355
</body>
4456
</html>
4557
)

0 commit comments

Comments
 (0)