{"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;KA2BC;;;;;IAtBC,sEAAe,GAAf,UAAgB,UAAwD;QACtE,EAAE,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;KACpC;;;;;IAMD,mEAAY,GAAZ,UAAa,OAAkD;QAC7D,EAAE,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;KAC9B;;;;;IAMD,kEAAW,GAAX,UACE,MAA4B,EAC5B,UAAoD;QAEpD,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;KACxC;;IA1BU,4CAA4C;QADxD,UAAU,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;OACtB,4CAA4C,CA2BxD;uDAtCD;CAWA;;ACXA;;GAEG;;;;"}