import { Injectable } from '@angular/core' ; import { GaEnhancedEcomAction , GaEnhancedEcomActionFieldObject , GaEnhancedEcomImpressionFieldObject , GaEnhancedEcomProductFieldObject , } from './ga-enhanced-ecom-options' ; declare var ga ; @ Injectable ( { providedIn : 'root' } ) export class Angulartics2GoogleAnalyticsEnhancedEcommerce { link ecAddImpression ( properties ) { ga ( 'ec:addImpression' , properties ) ; } link ecAddProduct ( product ) { ga ( 'ec:addProduct' , product ) ; } link ecSetAction ( action , properties ) { ga ( 'ec:setAction' , action , properties ) ; } }