Last active
June 7, 2019 05:33
-
-
Save dustinrecko/33f3995a82ef6ee3278c51271724a199 to your computer and use it in GitHub Desktop.
matelso-template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const copyFromWindow = require('copyFromWindow'); | |
const injectScript = require('injectScript'); | |
const CallTrackingObject = 'mtls'; | |
if(copyFromWindow(CallTrackingObject)) { | |
// matelso already loaded | |
data.gtmOnFailure(); | |
} | |
injectScript(data.LibraryUrl, data.gtmOnSuccess, data.gtmOnFailure, CallTrackingObject); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment