Skip to main content
March 18, 2016
解決済み

External Javascript not working when included in landing page template

  • March 18, 2016
  • 2 の返信
  • 2006 ビュー

I am attempting to include two external javascript files in the footer of my landing page template. I have uploaded the files to my design studio. This technique has worked many times to include external CSS files in templates, and to include JS in pages themselves, but neither of these are being recognized by the pages that use the template:

    <script href="https://nation.marketo.com//na-ab11.marketo.com/rs/453-JFP-852/images/js.cookie.js"></script>

    <script href="https://nation.marketo.com//na-ab11.marketo.com/rs/453-JFP-852/images/utmcookies.js"></script>

The code is all correct, and the utmcookies one should produce a console log when it is first called. The jQuery library is being included prior to these files. I tried using na-ab11... in the URL as well, to no avail. I also tried wrapping the utmcookies.js code in a $(document).ready() with no success.

This page is attempting, unsuccessfully, to use the files: Creative in Online Video Advertising (Infographic)

I am baffled. Am I doing something dumb here? Do Marketo templates support inclusion of external javascript files from the design studio?

このトピックへの返信は締め切られました。
ベストアンサー SanfordWhiteman

<script src=

not

<script href=

2 の返信

SanfordWhiteman
Level 10
March 18, 2016

<script src=

not

<script href=

March 18, 2016

Haha oh man. I guess my brain has completely worn out this week. Thanks Sanford.