analytics.js
-
Hi, in description you say it’s not work with analytics.js.
recently i update my analytics from ga.js to analytics.js and use this script codes in a scripts.js file:(function (e, t, n, r, i, s, o) { e["GoogleAnalyticsObject"] = i; e[i] = e[i] || function () { (e[i].q = e[i].q || []).push(arguments) }, e[i].l = 1 * new Date; s = t.createElement(n), o = t.getElementsByTagName(n)[0]; s.async = 1; s.src = r; o.parentNode.insertBefore(s, o) })(window, document, "script", "//www.google-analytics.com/analytics.js", "ga"); ga("create", "UA-123456789-0", "domain.com"); ga("send", "pageview"); var _gaq = _gaq || []; (function (e) { window.setInterval(function () { e = function (e) { return e[0] == 50 ? parseInt(e[1]) + 1 + ":00" : (e[1] || "0") + ":" + (parseInt(e[0]) + 10) }(e.split(":").reverse()); window.pageTracker ? pageTracker._trackEvent("Time", "Log", e) : _gaq.push(["_trackEvent", "Time", "Log", e]) }, 1e4) })("00")is this gonna work for me?
if not when you update your plugin? or can you give me a script that work like before please.
Thank you
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘analytics.js’ is closed to new replies.