• On version 3.0, it seems like there’s a bug in Javascript when you call the following line:

    ecl_scripts.innerHTML = <?php echo $this->printGtmHeader(); ?>;

    This results in an error in Javascript, due to an unexpected ;:

    ecl_scripts.innerHTML = ;

    I think this is because printGtmHeader is using gtm_header, whereas everything else is using ecl_gtm_header.

    • This topic was modified 5 years, 1 month ago by zachdlang. Reason: Adding more information
  • The topic ‘Javascript error when calling printGtmHeader’ is closed to new replies.