GH Replacement Codes & Shortcodes

Replacement Codes sind Variablen für einzelne Felder im Zusammenhang mit einem Kontakt, die in E-Mails, Funnels oder auf Seiten oder Beiträgen eingesetzt werden können. Eine Intro zum Thema Replacement Codes findest du in den GH-Docs hier.

Ein Beispiel, um auf einer Page ein “Hallo Adrian” einzufügen:

[gh_replacements]Hallo {first}[/gh_replacements]
oder
[ghr]Hallo {first}[/ghr]

Doch was tun, wenn einige Kontakte ohne Vorname sind? Das kann vorkommen, wenn bei einem Opt-in das Feld für den Vornamen freiwillig ist, statt required. Für diesen Fall gibt es die Replacement Code Defaults (siehe hier):

{replacement::default}

For example, to provide a default for the first name of a contact you can use {first::there} which will output “there” if the first name is not available.

You can also use this for custom meta replacements, for example, you can use {_my_custom_meta::custom_value} to output “custom_value” if the metadata is not available.

Shortcodes

https://help.groundhogg.io/article/536-what-is-a-shortcode-and-how-to-use-it