Skip to content

Commit

Permalink
Add support for custom dimensions
Browse files Browse the repository at this point in the history
Adds `setCustomDimension`, `getCustomDimension` and
`deleteCustomDimension`.
See matomo-org/matomo#9129
  • Loading branch information
danmichaelo committed Dec 29, 2015
1 parent 30871fa commit 0a56c17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/angular-piwik.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions lib/angular-piwik.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ mod.factory 'PiwikActionMethods', -> [
'trackContentInteraction'
'trackContentInteractionNode'
'trackSiteSearch'
'setCustomDimension'
'deleteCustomDimension'
]

mod.factory 'PiwikGetMethods', -> [
Expand All @@ -79,6 +81,7 @@ mod.factory 'PiwikGetMethods', -> [
'getSiteId'
'getUserId'
'getRequest'
'getCustomDimension'
]

mod.factory 'Piwik', [
Expand Down
3 changes: 3 additions & 0 deletions test/servicesSpec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 0a56c17

Please sign in to comment.