This article explains how to implement the Mopinion tag in the Google Tag Manager using the Mopinion Deployment template.
Google Tag Manager (GTM) is a free tag management system. Instead of implementing the Mopinion Deployment Code (MDC) directly into your web pages' HTML code, you can install the tag manager script once and control the Mopinion script from within Google.
We opt for the 'Window Loaded' type. Since we want the Mopinion Deployment Code to be loaded on all pages of the domain we select that the trigger fires on ‘All Window Loaded Events’.
Step 6: Your tag is now equipped with your unique Mopinion Deployment Code and a trigger to load the tag on every page. Hit 'SAVE’ to proceed to publish your tag.
Publish your tag
In the overview of your workspace, you see that 2 changes are ready for publication. You can either 'PREVIEW' or 'SUBMIT' the changes directly. If you 'PREVIEW' the changes only you or the people you invite can see the changes in your domain.
On a URL where the tag is loaded in preview mode, you should see a Google Tag Manager pane that showcases that the Mopinion Deployment Code tag has been fired on the event 'Window Loaded'.
Once satisfied with changes, you can 'SUBMIT' them and make them available for all your visitors. Before you 'PUBLISH' the changes you are asked to name the version with the changes. We would advise you to give it a clear name and description, so you know this version holds the Mopinion Deployment Code.