• Hello,

    Thank you for this great plugin.

    I would like to know if there is a reason behind loading the JS scripts in the header instead of the footer.

    For example:
    wp_enqueue_script("gtm4wp-outbound-click-tracker", $gtp4wp_plugin_url."js/gtm4wp-outbound-click-tracker.js", array("jquery"), GTM4WP_VERSION, $in_footer);

    $in_footer default is false (in header).

    I know there is a filter that I can use to change $in_footer.
    Nowadays, scripts are loaded in the footer to defer loading.
    So is there a reason?

    THank you very much.

Viewing 1 replies (of 1 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi Nico,

    Well, maybe this is simply a bad pattern of me ??
    I still need to test some new features for the next release but after that I will check whether I could change the default value without breaking many websites ??

    Have a great day,
    Thomas Geiger

Viewing 1 replies (of 1 total)
  • The topic ‘Events javascript loaded in header instead of footer’ is closed to new replies.