Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'already accepted' function #9

Open
BruceMcKinnon opened this issue May 28, 2018 · 1 comment
Open

Add 'already accepted' function #9

BruceMcKinnon opened this issue May 28, 2018 · 1 comment

Comments

@BruceMcKinnon
Copy link

Great plugin. But when dynamically loading Google Analytics, the user_cookie_already_accepted can be triggered early.

My work-around was to add an additional public function, so you can check cookie acceptance at any time:
alreadyAccepted : function() {
// No need to display this if user already accepted the policy
return userAlreadyAcceptedCookies();
}

@ikunyemingor
Copy link

Many thanks @BruceMcKinnon your public function suggestion worked

alreadyAccepted: function() {
// No need to display this if user already accepted the policy
return userAlreadyAcceptedCookies();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants