Open kdrdgn opened 9 years ago
No need to copy this code into the minfile. Just enable the plugin, paste in UA code, and restart NodeBB.
On Tue, Oct 27, 2015 at 1:27 PM Kadir Doğan notifications@github.com wrote:
$.get(RELATIVE_PATH + "/api/plugins/google-analytics").success(function(t) { (function(t, e, n, i, r, o, a) { t["GoogleAnalyticsObject"] = r; t[r] = t[r] || function() { (t[r].q = t[r].q || []).push(arguments) } , t[r].l = 1 * new Date; o = e.createElement(n), a = e.getElementsByTagName(n)[0]; o.async = 1; o.src = i; a.parentNode.insertBefore(o, a) } )(window, document, "script", "//www.google-analytics.com/analytics.js", "ga"); ga("create", t.id, "auto"); if (t.displayFeatures === "on") { ga("require", "displayfeatures") } ga("send", "pageview"); $(window).on("action:ajaxify.end", function(t, e) { ga("send", "pageview", RELATIVE_PATH + "/" + e.url) } ) }
i just copied this tracking plugin code in node.bb.min.js on my nodebb website. I observe google developer tools network panel. http://www.google-analytics.com/analytics.js js code is downloaded.
I added 2 days ago and still google analytics says "Status: Tracking Not Installed"
— Reply to this email directly or view it on GitHub https://github.com/julianlam/nodebb-plugin-google-analytics/issues/18.
Sorry for my bad english. I mean "I just copied from nodebb.min.js", i see this code blocks and http://www.google-analytics.com/analytics.js js code is downloaded at chrome network panel.
But 2 days Google Analytics 'Status: Tracking Not Installed'
i just copied this tracking plugin code in node.bb.min.js on my nodebb website. I observe google developer tools network panel. http://www.google-analytics.com/analytics.js js code is downloaded.
I added 2 days ago and still google analytics says "Status: Tracking Not Installed"