I have a Javascript file written and saved in Cloud Page. Now,I want to refer this Javascript file from Cloud page inside my email in Content Builder. The reason why I am following this approach is because content builder removes Javascript statements mentioned implicitly inside emails. Any help would be much appreciated

  • The straight answer is that you can use <script src="your hosted url of cloud age"></script> ...... but I would strongly discourage using JS inside an Email... can you pls elobarate what you are trying to achieve using JS. – Vishal Kumar C V Oct 12 '20 at 6:21
  • We are trying to implement the logic of Countdown within our emails in Content Builder. – Sourab Mund Oct 12 '20 at 6:32

As per the Email marketing best practice, using JavaScript inside email is NOT recommended [infact not supported] which might lead to security issues. Also may mark your email as SPAM or PHISHING.

Please read more here


But, it does NOT stop you from using Count down timer. There are many methods listed here, chose the one which suits your requirement.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.