• Resolved Hamed.T

    (@hamedt)


    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

    http://ww.wp.xz.cn/plugins/reduce-bounce-rate/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Okoth1

    (@okoth1)

    I don’t think this script will work for analytics.js. Where did you get it from?

    I don’t have plans to update the plugin. It will only work for ga.js script. This plugin will work until Google deletes the ga.js way of tracking with any update needed actually.

    When there will be a new reducing bounce rate script available online for analytics.js I might put it in a plugin, but I have no intention of making it myself.

    The best way for getting the real figures in analytics with analytics.js is via Tag Manager. See this post

    Thread Starter Hamed.T

    (@hamedt)

    information was helpful, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘analytics.js’ is closed to new replies.