Skip to content

Commit

Permalink
Merge pull request #176 from toppers/update-GA4
Browse files Browse the repository at this point in the history
GA4対応
  • Loading branch information
mitsut authored May 19, 2024
2 parents 480928d + 7a8403c commit d07ff80
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// Rebuild the container if it already exists to update.
"VERSION": "latest",
// Update NODE_VERSION to pick the Node.js version: 12, 14
"NODE_VERSION": "14"
"NODE_VERSION": "20"
}
},

Expand Down Expand Up @@ -42,7 +42,7 @@

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "uname -a",
"postCreateCommand": "git submodule update --init",
// "postCreateCommand": "git submodule update --init",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title = "箱庭"
theme = "kube"
description = "IoT/クラウドロボティクス時代の仮想シミュレーション環境"
Paginate = 4
googleAnalytics = "UA-169187702-1"
GoogleAnalytics = "G-57DLKTNNK8"

DefaultContentLanguage = "ja"

Expand Down
2 changes: 1 addition & 1 deletion content/en/prototypes/multi-robot.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This prototype uses Unity's Photon library to synchronize multiple Unity environ

Various demos are available at the following Github repository. Try them out.

[toppers/hakoniwa-ros-multiplay]("https://github.com/toppers/hakoniwa-ros-multiplay")
[toppers/hakoniwa-ros-multiplay](https://github.com/toppers/hakoniwa-ros-multiplay)

### Demonstration of examples
- Multiple robot collaboration with photon
Expand Down
2 changes: 1 addition & 1 deletion content/prototypes/multi-robot.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ UnityのPhotonライブラリを用いて複数のUnity環境の同期を行っ

以下のGithubリポジトリにて,各種デモを公開しています.ぜひお試し下さい.

[toppers/hakoniwa-ros-multiplay]("https://github.com/toppers/hakoniwa-ros-multiplay")
[toppers/hakoniwa-ros-multiplay](https://github.com/toppers/hakoniwa-ros-multiplay)

### 動作例のデモ
- photonによる複数ロボットの連携
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<!-- Site verification -->
{{ if .IsHome }} {{ partial "site-verification" . }} {{ end }}
<!-- add googleAnalytics in config.toml -->
{{ template "_internal/google_analytics_async.html" . }}
{{- partial "analytics" . -}}
{{ with .OutputFormats.Get "RSS" }} <link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ site.Title }}" /> {{ end }}

<link rel="canonical" href="{{ .Permalink }}"> {{ if (isset .Params "prev") }}
Expand Down
13 changes: 13 additions & 0 deletions layouts/partials/analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{ if not hugo.IsServer }}
{{ with .Site.GoogleAnalytics }}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.GoogleAnalytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{ .Site.GoogleAnalytics }}');
</script>
{{ end }}
{{ end }}

0 comments on commit d07ff80

Please sign in to comment.