Loading via Google Tag Manager
Option 1.
Use GTM to add the javascript to the page / add the DML div tag to the page.
- Create a Custom HTML Tag with the following tag:
<script async src="https://c.go-fet.ch/a/embed.js"></script>
- Add a trigger
- Add into your page template the DML div tag - this is required for the javascript to know where to insert the collection and what collection to use. Example:
<div data-stackid="sample" class="dml-widget-container"></div>
Option 2.
Use GTML to add the javascript and the div tag to the page / add a placeholder div tag to the page.
- Create a Custom HTML Tag with the following script tag. This will update the placeholder with the required info and load the collection:
<script> var stackid="sample"; var placeholder = document.getElementById("dml-placeholder"); placeholder.dataset.stackid=stackid; </script>
<script async src="https://c.go-fet.ch/a/embed.js"></script> - Add a trigger
- Add into your page template the DML div tag - this is required for the javascript to know where to insert the collection and what collection to use. Example:
<div id="dml-placeholder" class="dml-widget-container"></div>
Note:
- The stackid of "sample" should be replaced with the Id of the collections that you wish to embed.
- This has been tested using the Page View and DOM Ready triggers. It may work with others depending on your page setup.