You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .codedoc/plugins/ga/index.tsx
+40-10
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,52 @@ import { StaticRenderer } from '@connectv/sdh';
2
2
importregisterfrom'jsdom-global';
3
3
import{ConfigOverride}from'@codedoc/core';
4
4
5
-
constrenderer=newStaticRenderer();// --> create a static renderer
6
-
register();// --> register jdom global so that we can create DOM elements
5
+
constrenderer=newStaticRenderer();
6
+
register();
7
7
8
+
// Documentation
9
+
// Coppied from https://github.com/bender2k14/tyson-williams-blog/blob/2501a6e55ebbf0e559d91ac1494ef2b412739c7d/.codedoc/components/GoogleAnalytics/plugin.tsx#L28
10
+
// Thumbs up to @bender2k14
11
+
// Use gtag.js
12
+
// not analytics.js https://developers.google.com/analytics/devguides/collection/upgrade
13
+
// not ga.js https://developers.google.com/analytics/devguides/collection/gajs/asyncMigrationExamples#basic-page-tracking
0 commit comments