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 Google Analytics settings #172

Merged
merged 6 commits into from
Apr 24, 2017
Merged

Conversation

AdrianRaFo
Copy link
Contributor

Fixes #157 Add Google Analytics to microsite settings

@@ -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" |
Copy link
Member

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>').")
Copy link
Member

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');
Copy link
Member

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.

Copy link
Member

@juanpedromoreno juanpedromoreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

giphy 8

@juanpedromoreno juanpedromoreno merged commit f3d53c8 into master Apr 24, 2017
@juanpedromoreno juanpedromoreno deleted the arf-Add-analytics-setting branch April 24, 2017 13:54
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

Successfully merging this pull request may close these issues.

2 participants