Hello Nora,
You can add code by using Embed widget http://support.motocms.com/hc/en-us/articles/203594530-Widgets#embed. This widget available in new version. Please take a look at our guide http://support.motocms.com/hc/en-us/articles/203594410-Settings#updates and update your template to newest version.
Best regards,
Sam Clayton