-
Notifications
You must be signed in to change notification settings - Fork 64
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 Google Analytics settings #172
Conversation
project/ProjectPlugin.scala
Outdated
@@ -65,7 +65,9 @@ object ProjectPlugin extends AutoPlugin { | |||
micrositeGithubOwner := "47deg", | |||
micrositeGithubRepo := "sbt-microsites", | |||
micrositeHighlightTheme := "color-brewer", | |||
includeFilter in makeSite := "*.html" | "*.css" | "*.png" | "*.jpg" | "*.gif" | "*.js" | "*.swf" | "*.md" | |||
includeFilter in makeSite := "*.html" | "*.css" | "*.png" | "*.jpg" | "*.gif" | "*.js" | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can keep this in a single line
@@ -115,6 +115,8 @@ trait MicrositeKeys { | |||
"Determines what will be chosen for pushing the site. The options are sbt-ghpages plugin and github4s library.") | |||
|
|||
val publishMicrositeCommandKey: String = "publishMicrosite" | |||
val micrositeAnalyticsToken = settingKey[String]( | |||
"In the case where your project isn't hosted on Github, use this setting to point users to git host (e.g. 'https://internal.gitlab.com/<user>/<project>').") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description is not correct
|})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||
| | ||
|ga('create', '${config.identity.analytics}' , 'auto'); | ||
|ga('send', 'pageview'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Format is weird in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #157 Add Google Analytics to microsite settings