External templates

You can embed external templates easily using the smart embed.

<script src="https://{shortname}.getmediamanager.com/js/mm.embed.v1.min.js"></script>
<script type="text/javascript">

 //WIDTH AND HEIGHT OF THE EMBED
 mediamanager.width(300);
 mediamanager.height(350);

 //THE EXTERNAL TEMPLATE ID
 mediamanager.template("{external_template_id}");

 //YOUR SHORTNAME
 mediamanager.client("{shortname}");

 //EMBED THE TEMPLATE
 mediamanager.embed();
</script>

Note

Your external template has to be registered with us with a valid URL. This will allow you to publish to your template.

Analytics tagging

You can still make use of analyics tagging using the smart embed by setting the meta data.

//SET UID HAS ANALYTICS TAG
mediamanager.meta.uid = 1234;

Note

Analytics tags will be passed along to your external template URL. Its up to you to process them correctly. You can make use of our External Javascript API to make it easier.