{"version":3,"file":"angulartics2-ga-enhanced-ecom.js","sources":["ng://angulartics2/ga-enhanced-ecom/ga-enhanced-ecom.ts","ng://angulartics2/ga-enhanced-ecom/angulartics2-ga-enhanced-ecom.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport {\n GaEnhancedEcomAction,\n GaEnhancedEcomActionFieldObject,\n GaEnhancedEcomImpressionFieldObject,\n GaEnhancedEcomProductFieldObject,\n} from './ga-enhanced-ecom-options';\n\ndeclare var ga: UniversalAnalytics.ga;\n\n@Injectable({ providedIn: 'root' })\nexport class Angulartics2GoogleAnalyticsEnhancedEcommerce {\n /**\n * Add impression in GA enhanced ecommerce tracking\n * @link https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#measuring-activities\n */\n ecAddImpression(properties: Partial) {\n ga('ec:addImpression', properties);\n }\n\n /**\n * Add product in GA enhanced ecommerce tracking\n * @link https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce\n */\n ecAddProduct(product: Partial) {\n ga('ec:addProduct', product);\n }\n\n /**\n * Set action in GA enhanced ecommerce tracking\n * @link https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce\n */\n ecSetAction(\n action: GaEnhancedEcomAction,\n properties: Partial,\n ) {\n ga('ec:setAction', action, properties);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './ga-enhanced-ecom';\n"],"names":[],"mappings":";;;IAWa,4CAA4C,GAAzD,MAAa,4CAA4C;;;;;IAKvD,eAAe,CAAC,UAAwD;QACtE,EAAE,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;KACpC;;;;;IAMD,YAAY,CAAC,OAAkD;QAC7D,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;KAC9B;;;;;IAMD,WAAW,CACT,MAA4B,EAC5B,UAAoD;QAEpD,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;KACxC;CACF,CAAA;;AA3BY,4CAA4C;IADxD,UAAU,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;GACtB,4CAA4C,CA2BxD;;ACtCD;;GAEG;;;;"}