⚡ Use dynamic function load analytic scripts avoid affecting the execution of page functions.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{{ $ctx := . }}
|
||||
{{- with .Site.Params.analytics }}
|
||||
{{- if isset . "laid" }}
|
||||
{{ partial "_thirdparty/analytics/51la.html" .laId }}
|
||||
{{ partial "_thirdparty/analytics/51la.html" (dict "ctx" $ctx "id" .laId) }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user