• Resolved Der-Bank-Blog

    (@der-bank-blog)


    Hi

    the JS code generated by the plugin appears inline in the Header. Is it possible to move it to the footer?

    Cheers

    Hansj?rg

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

    (@okoth1)

    Hi Hansj?rg,

    What you could do for now is go to the bottom of reduce-bounce-rate.php and change
    add_action('wp_head', 'rbr_st_control_vars', 1);
    into
    add_action('wp_footer', 'rbr_st_control_vars', 1);

    I’m not sure why I put it in the head, but the reason could be that I wanted to be sure that this script comes before the other plugin scripts. If you’re going to change it check in Analytics in Real Time if everything is still working.

    I’m planning to make some changes to the plugin. Maybe I could consider to move it to the footer.

    It’s working on my side btw.

    Regards

    • This reply was modified 7 years, 11 months ago by Okoth1.
    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hi

    thanks for the code. I checked it now for one week and it seems to work fine.

    My Suggestion is, to put it in the next update as a Standard.

    Cheers from Germany

    Hansj?rg

    Plugin Author Okoth1

    (@okoth1)

    Thanks Hansj?rg, I will consider it. I have to figure out why I didn’t do it at from the beginning. I also like to have all scripts in the footer, so I don’t understand why I didn’t put it there.

    I will look at it in January because I want to change some other things as well and maybe I can do it all in one go. Have to go on holiday first ??

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hi

    did you Change this in the 4.2.0?

    Cheers

    Hansj?rg

    Plugin Author Okoth1

    (@okoth1)

    Guess the holiday didn’t help much. Or I’m getting older…

    Either way, I still need to change this. I need to test it , so you need to give me a couple of days more.

    Anything else people? This is your chance! ??

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    ??

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    Hi

    in the new Version: Did you enable it in the footer or still in the Header?

    Cheers
    Hansj?rg

    Plugin Author Okoth1

    (@okoth1)

    Not yet, Hans. It was just a rollback to version 4.2. I know that you are waiting for it, but I really want to test it first. Just doesn’t have time at the moment to do it. But it’s on my list and as soon as I have time I will add it.

    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    No Problem ??

    If I do not use the MonsterInsight plugin, I do not Need to roll back, right?

    Cheers

    Hansj?rg

    Plugin Author Okoth1

    (@okoth1)

    No, just leave it. I really hope I can remove this from my todo list soon…

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Code in header –> Footer’ is closed to new replies.