Skip to content

Instantly share code, notes, and snippets.

@d6y
Created June 10, 2012 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d6y/2906122 to your computer and use it in GitHub Desktop.
Save d6y/2906122 to your computer and use it in GitHub Desktop.
Example of conditionally enabling analytics
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