Created
June 10, 2012 15:08
-
-
Save d6y/2906122 to your computer and use it in GitHub Desktop.
Example of conditionally enabling analytics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bootstrap.liftmodules.GoogleAnalytics | |
import GoogleAnalytics.dsl._ | |
GoogleAnalytics.init { | |
only when S.cookieValue("cookie_consent").isDefined | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment