diff --git a/dist/angular-piwik.js b/dist/angular-piwik.js index 982386e..2eeb685 100644 --- a/dist/angular-piwik.js +++ b/dist/angular-piwik.js @@ -8,11 +8,11 @@ mod = angular.module('piwik', []); mod.factory('PiwikActionMethods', function() { - return ['setTrackerUrl', 'setSiteId', 'setCustomData', 'setCustomVariable', 'deleteCustomVariable', 'setLinkTrackingTimer', 'setDownloadExtensions', 'addDownloadExtensions', 'setDomains', 'setIgnoreClasses', 'setRequestMethod', 'setReferrerUrl', 'setCustomUrl', 'setDocumentTitle', 'setDownloadClasses', 'setLinkClasses', 'setCampaignNameKey', 'setCampaignKeywordKey', 'discardHashTag', 'setCookieNamePrefix', 'setCookieDomain', 'setCookiePath', 'setVisitorCookieTimeout', 'setSessionCookieTimeout', 'setReferralCookieTimeout', 'setConversionAttributionFirstReferrer', 'setDoNotTrack', 'addListener', 'enableLinkTracking', 'setHeartBeatTimer', 'killFrame', 'redirectFile', 'setCountPreRendered', 'trackGoal', 'trackLink', 'trackEvent', 'trackPageView', 'setEcommerceView', 'addEcommerceItem', 'trackEcommerceOrder', 'trackEcommerceCartUpdate', 'setUserId', 'setCustomRequestProcessing', 'appendToTrackingUrl', 'addPlugin', 'storeCustomVariablesInCookie', 'setRequestContentType', 'setAPIUrl', 'disableCookies', 'deleteCookies', 'enableJSErrorTracking', 'disablePerformanceTracking', 'setGenerationTimeMs', 'trackAllContentImpressions', 'trackVisibleContentImpressions', 'trackContentImpression', 'trackContentImpressionsWithinNode', 'trackContentInteraction', 'trackContentInteractionNode', 'trackSiteSearch']; + return ['setTrackerUrl', 'setSiteId', 'setCustomData', 'setCustomVariable', 'deleteCustomVariable', 'setLinkTrackingTimer', 'setDownloadExtensions', 'addDownloadExtensions', 'setDomains', 'setIgnoreClasses', 'setRequestMethod', 'setReferrerUrl', 'setCustomUrl', 'setDocumentTitle', 'setDownloadClasses', 'setLinkClasses', 'setCampaignNameKey', 'setCampaignKeywordKey', 'discardHashTag', 'setCookieNamePrefix', 'setCookieDomain', 'setCookiePath', 'setVisitorCookieTimeout', 'setSessionCookieTimeout', 'setReferralCookieTimeout', 'setConversionAttributionFirstReferrer', 'setDoNotTrack', 'addListener', 'enableLinkTracking', 'setHeartBeatTimer', 'killFrame', 'redirectFile', 'setCountPreRendered', 'trackGoal', 'trackLink', 'trackEvent', 'trackPageView', 'setEcommerceView', 'addEcommerceItem', 'trackEcommerceOrder', 'trackEcommerceCartUpdate', 'setUserId', 'setCustomRequestProcessing', 'appendToTrackingUrl', 'addPlugin', 'storeCustomVariablesInCookie', 'setRequestContentType', 'setAPIUrl', 'disableCookies', 'deleteCookies', 'enableJSErrorTracking', 'disablePerformanceTracking', 'setGenerationTimeMs', 'trackAllContentImpressions', 'trackVisibleContentImpressions', 'trackContentImpression', 'trackContentImpressionsWithinNode', 'trackContentInteraction', 'trackContentInteractionNode', 'trackSiteSearch', 'setCustomDimension', 'deleteCustomDimension']; }); mod.factory('PiwikGetMethods', function() { - return ['getVisitorId', 'getVisitorInfo', 'getAttributionInfo', 'getAttributionCampaignName', 'getAttributionCampaignKeyword', 'getAttributionReferrerTimestamp', 'getAttributionReferrerUrl', 'getCustomData', 'getCustomVariable', 'getTrackerUrl', 'getSiteId', 'getUserId', 'getRequest']; + return ['getVisitorId', 'getVisitorInfo', 'getAttributionInfo', 'getAttributionCampaignName', 'getAttributionCampaignKeyword', 'getAttributionReferrerTimestamp', 'getAttributionReferrerUrl', 'getCustomData', 'getCustomVariable', 'getTrackerUrl', 'getSiteId', 'getUserId', 'getRequest', 'getCustomDimension']; }); mod.factory('Piwik', [ diff --git a/lib/angular-piwik.coffee b/lib/angular-piwik.coffee index 4e26838..51aac7f 100644 --- a/lib/angular-piwik.coffee +++ b/lib/angular-piwik.coffee @@ -63,6 +63,8 @@ mod.factory 'PiwikActionMethods', -> [ 'trackContentInteraction' 'trackContentInteractionNode' 'trackSiteSearch' + 'setCustomDimension' + 'deleteCustomDimension' ] mod.factory 'PiwikGetMethods', -> [ @@ -79,6 +81,7 @@ mod.factory 'PiwikGetMethods', -> [ 'getSiteId' 'getUserId' 'getRequest' + 'getCustomDimension' ] mod.factory 'Piwik', [ diff --git a/test/servicesSpec.coffee b/test/servicesSpec.coffee index edb4e97..f2a521d 100644 --- a/test/servicesSpec.coffee +++ b/test/servicesSpec.coffee @@ -148,3 +148,6 @@ describe 'Piwik Service', -> expect(typeof piwik.trackContentInteraction).toEqual 'function' expect(typeof piwik.trackContentInteractionNode).toEqual 'function' expect(typeof piwik.trackSiteSearch).toEqual 'function' + expect(typeof piwik.setCustomDimension).toEqual 'function' + expect(typeof piwik.deleteCustomDimension).toEqual 'function' + expect(typeof piwik.getCustomDimension).toEqual 'function'