Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 61b07e9

Browse files
authored
Update template.go
1 parent 633b390 commit 61b07e9

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

claat/render/template.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@ import (
3535

3636
// Context is a template context during execution.
3737
type Context struct {
38-
Env string
39-
Prefix string
40-
GlobalGA string
41-
Format string
42-
Meta *types.Meta
43-
Steps []*types.Step
44-
Updated string
45-
Extra map[string]string // Extra variables passed from the command line.
38+
Env string
39+
Prefix string
40+
GlobalGA string
41+
GlobalGA4 string
42+
Format string
43+
Meta *types.Meta
44+
Steps []*types.Step
45+
Updated string
46+
Extra map[string]string // Extra variables passed from the command line.
4647
}
4748

4849
// Execute renders a template of the fmt format into w.
@@ -104,6 +105,7 @@ var funcMap = map[string]interface{}{
104105
res += kvLine(mdParse.MetaTags, strings.Join(meta.Tags, ","))
105106
res += kvLine(mdParse.MetaFeedbackLink, meta.Feedback)
106107
res += kvLine(mdParse.MetaAnalyticsAccount, meta.GA)
108+
res += kvLine(mdParse.MetaAnalyticsGa4Account, meta.GA4)
107109
res += kvLine(mdParse.MetaSource, meta.Source)
108110
res += kvLine(mdParse.MetaDuration, strconv.Itoa(meta.Duration))
109111

0 commit comments

Comments
 (0)