The recommended way to add Modovisa to Magento is through Content → Configuration → HTML Head. Paste your Tracking Token into the “Scripts and Style Sheets” field—no code changes required.
1. In your Magento Admin, go to Content → Configuration.
2. Choose your target Store View (or Global) and click Edit in the Actions column.
3. Scroll to Other Settings → HTML Head and expand it.
4. Paste the Modovisa tracking script into Scripts and Style Sheets:
<script>
!function(){
var s=document.createElement("script");
s.src="https://cdn.modovisa.com/modovisa.min.js";
s.async=1;
s.dataset.token="YOUR_TRACKING_TOKEN";
document.head.appendChild(s);
}();
</script>
5. Click Save (top right).
6. Flush cache so changes take effect: System → Tools → Cache Management → Flush Magento Cache.
modovisa.min.js.