Skip to content

Commit

Permalink
refactor is analytics allowed method
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegMoshkovich committed Apr 4, 2022
1 parent 89be4b1 commit 800442b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/privacy/analytics.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import gtag from '../utils/gtag'
import * as Functional from './functional'
import * as Privacy from './Privacy'
import {assertDefined} from '../utils/assert'


Expand All @@ -20,10 +21,10 @@ export function recordEvent(commandParameters, additionalConfigInfo) {


/**
* @return {boolean} is analytics enabled
* @return {boolean} is social level of privacy enabled
*/
export function isAnalyticsAllowed() {
return Functional.getCookie('social', false) // defaultValue
return Privacy.getPrivacy('social', false) // defaultValue
}


Expand Down

0 comments on commit 800442b

Please sign in to comment.