Skip to content
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.

Commit

Permalink
Add Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalcraftsman committed Nov 29, 2015
1 parent f9c9e76 commit f603403
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ baseurl = "http://replace-this-with-your-hugo-site.com/"
languageCode = "en-us"
title = "Hugo Agency Theme"
theme = "hugo-agency-theme"

# Enter your tracking code to enable Google Analytics
googleAnalytics = ""

[params]

Expand Down
1 change: 1 addition & 0 deletions layouts/partials/js.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
<script src="{{ .Site.BaseURL }}js/contact_me.js"></script>
{{ "<!-- Custom Theme JavaScript -->" | safeHTML }}
<script src="{{ .Site.BaseURL }}js/agency.js"></script>
{{ template "_internal/google_analytics.html" . }}
5 changes: 2 additions & 3 deletions theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ license = "Apache License 2.0"
licenselink = "//github.com/digitalcraftsman/hugo-agency-theme/blob/master/LICENSE"
description = "A one page portfolio for companies and freelancers."
homepage = "//github.com/digitalcraftsman/hugo-agency-theme"
tags = ["portfolio", "company", "contact form", "clients", "team"]
features = ["portfolio with modals", "contact form", "timeline"]
min_version = 0.14
tags = ["portfolio", "company", "contact form", "timeline", "google analytics"]
min_version = 0.15

[author]
name = "digitalcraftsman"
Expand Down

0 comments on commit f603403

Please sign in to comment.