External Javascript not working when included in landing page template | Community
Skip to main content
March 18, 2016
Solved

External Javascript not working when included in landing page template

  • March 18, 2016
  • 1 reply
  • 1991 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

<script src=

not

<script href=

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
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.