• Resolved aviity

    (@aviity)


    I have implemented google analytics by hosting the analytics.js file locally. Will your plugin work with this local hosted file?

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

    (@okoth1)

    Hi,

    With locally, do you mean XAMPP or something similar?

    Thread Starter aviity

    (@aviity)

    No I have hosted the analytics.js file on my web server only. So now my website does not have to hit the google server and this decreased my website loading time a lot.

    I implemented the suggestion at https://community.keycdn.com/t/hosting-google-analytics-locally/437
    which allows you to host the google analytics files locally on your server.

    Plugin Author Okoth1

    (@okoth1)

    This is what Google says about it. It’s possible, but not recommended.

    https://support.google.com/analytics/answer/1032389?hl=en

    Thread Starter aviity

    (@aviity)

    yeah I am implementing this and I am updating the analytics.js daily. I want to ask you if your plugin supports this type of file and can help me in reducing the bounce rate.

    Plugin Author Okoth1

    (@okoth1)

    Yes, it supports it if you point to it in the plugin. The plugin will reduce your bounce rate statistics in Analytics. Your website is not going to rank higher because of my plugin.

    Thread Starter aviity

    (@aviity)

    And how can I point to it in the plugin? there is no option to select the offline analytics.js file.

    Plugin Author Okoth1

    (@okoth1)

    No there is no option, but I will think about it if it’s an idea to add the option to the plugin. Bit chance that I won’t, but I don’t think there are many advantages.

    So you’ll have to update the link with every plugin update… There are not many updates, so it won’t be much work.

    When you open reduce-bounce-rate.php and look at line 414, you can put your url there. I would still recommend to use the wp_enqueue_script method. There is enough to read about it online.

    Good luck!

    Thread Starter aviity

    (@aviity)

    thanks I did that and I hope that it will work.

    wp_enqueue_script('rbr_scripts', 'https://www.example.com/analyticsjs.js', array(
                    'jquery'
                ), '', ($rbrplace == 'footer'));
Viewing 8 replies - 1 through 8 (of 8 total)

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