{"version":3,"names":[],"mappings":"","sources":["scripts/libraries/angulartics/angulartics-gtm.min.js"],"sourcesContent":["/**\r\n * @license Angulartics v0.17.2\r\n * (c) 2013 Luis Farzati http://luisfarzati.github.io/angulartics\r\n * Google Tag Manager Plugin Contributed by http://github.com/danrowe49\r\n * License: MIT\r\n */\r\n\r\n(function(angular){\r\n'use strict';\r\n\r\n\r\n/**\r\n * @ngdoc overview\r\n * @name angulartics.google.analytics\r\n * Enables analytics support for Google Tag Manager (http://google.com/tagmanager)\r\n */\r\n\r\nangular.module('angulartics.google.tagmanager', ['angulartics'])\r\n.config(['$analyticsProvider', function($analyticsProvider){\r\n\r\n\t/**\r\n\t* Send content views to the dataLayer\r\n\t*\r\n\t* @param {string} path Required 'content name' (string) describes the content loaded\r\n\t*/\r\n\r\n\t$analyticsProvider.registerPageTrack(function(path){\r\n\t\tvar dataLayer = window.dataLayer = window.dataLayer || [];\r\n\t\tdataLayer.push({\r\n\t\t\t'event': 'content-view',\r\n\t\t\t'content-name': path\r\n\t\t});\r\n\t});\r\n\r\n\t/**\r\n * Send interactions to the dataLayer, i.e. for event tracking in Google Analytics\r\n * @name eventTrack\r\n *\r\n * @param {string} action Required 'action' (string) associated with the event\r\n * @param {object} properties Comprised of the mandatory field 'category' (string) and optional fields 'label' (string), 'value' (integer) and 'noninteraction' (boolean)\r\n */\r\n\r\n\t$analyticsProvider.registerEventTrack(function(action, properties){\r\n\t\tvar dataLayer = window.dataLayer = window.dataLayer || [];\r\n\t\tdataLayer.push({\r\n\t\t\t'event': 'interaction',\r\n\t\t\t'target': properties.category,\r\n\t\t\t'action': action,\r\n\t\t\t'target-properties': properties.label,\r\n\t\t\t'value': properties.value,\r\n\t\t\t'interaction-type': properties.noninteraction\r\n\t\t});\r\n\r\n\t});\r\n}]);\r\n\r\n})(angular);\r\n"],"file":"angulartics-gtm.min.js"}