diff --git a/riveted.js b/riveted.js index 1cdfc6c..3a985f8 100644 --- a/riveted.js +++ b/riveted.js @@ -46,7 +46,9 @@ var riveted = (function() { classicGA = true; } - if (typeof dataLayer !== "undefined" && typeof dataLayer.push === "function") { + if (options.googleTagManager) { + googleTagManager = options.googleTagManager; + } else if (typeof dataLayer !== "undefined" && typeof dataLayer.push === "function") { googleTagManager = true; }